@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.
@@ -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-]+:\/\/$/, 'Protocols contain letters and dashes (-) only')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.4",
3
+ "version": "7.188.5",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -123,7 +123,10 @@ export const appProtocolValidation = yup
123
123
  'Protocols must be lowercase',
124
124
  (value) => value === value.toLowerCase()
125
125
  )
126
- .matches(/^[a-zA-Z-]+:\/\/$/, 'Protocols contain letters and dashes (-) only')
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({