@plasius/schema 1.2.8 → 1.2.9
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.cjs
CHANGED
|
@@ -821,7 +821,7 @@ function validateName(value) {
|
|
|
821
821
|
const cp = ch.codePointAt(0);
|
|
822
822
|
if (cp >= 0 && cp <= 31 || cp === 127) return false;
|
|
823
823
|
}
|
|
824
|
-
const namePattern = /^[\p{L}\p{M}'
|
|
824
|
+
const namePattern = /^[\p{L}\p{M}'\-. ]+$/u;
|
|
825
825
|
if (!namePattern.test(trimmed)) return false;
|
|
826
826
|
return true;
|
|
827
827
|
}
|