@plasius/schema 1.2.8 → 1.2.10
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -760,7 +760,7 @@ function validateName(value) {
|
|
|
760
760
|
const cp = ch.codePointAt(0);
|
|
761
761
|
if (cp >= 0 && cp <= 31 || cp === 127) return false;
|
|
762
762
|
}
|
|
763
|
-
const namePattern = /^[\p{L}\p{M}'
|
|
763
|
+
const namePattern = /^[\p{L}\p{M}'\-. ]+$/u;
|
|
764
764
|
if (!namePattern.test(trimmed)) return false;
|
|
765
765
|
return true;
|
|
766
766
|
}
|