@todesktop/shared 7.188.4 → 7.188.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/validations.js +1 -1
- package/package.json +1 -1
- package/src/validations.ts +4 -1
package/lib/validations.js
CHANGED
|
@@ -84,7 +84,7 @@ exports.appProtocolValidation = yup
|
|
|
84
84
|
.label('App Protocol')
|
|
85
85
|
.test('ends-with-protocol', 'Protocols must end with `://`', (value) => value.endsWith('://'))
|
|
86
86
|
.test('is-lowercase', 'Protocols must be lowercase', (value) => value === value.toLowerCase())
|
|
87
|
-
.matches(/^[a-zA-Z
|
|
87
|
+
.matches(/^[a-zA-Z-.]+:\/\/$/, 'Protocols contain letters, dots (.) and dashes (-) only')
|
|
88
88
|
.min(5);
|
|
89
89
|
exports.appConfigValidation = yup.object({
|
|
90
90
|
id: yup.string().required(),
|
package/package.json
CHANGED
package/src/validations.ts
CHANGED
|
@@ -123,7 +123,10 @@ export const appProtocolValidation = yup
|
|
|
123
123
|
'Protocols must be lowercase',
|
|
124
124
|
(value) => value === value.toLowerCase()
|
|
125
125
|
)
|
|
126
|
-
.matches(
|
|
126
|
+
.matches(
|
|
127
|
+
/^[a-zA-Z-.]+:\/\/$/,
|
|
128
|
+
'Protocols contain letters, dots (.) and dashes (-) only'
|
|
129
|
+
)
|
|
127
130
|
.min(5);
|
|
128
131
|
|
|
129
132
|
export const appConfigValidation = yup.object({
|