@plasius/schema 1.2.7 → 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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var FieldBuilder = class _FieldBuilder {
|
|
|
12
12
|
this.itemType = options.itemType;
|
|
13
13
|
this.refType = options.refType;
|
|
14
14
|
}
|
|
15
|
+
type;
|
|
15
16
|
_type;
|
|
16
17
|
_storageType;
|
|
17
18
|
isSystem = false;
|
|
@@ -759,7 +760,7 @@ function validateName(value) {
|
|
|
759
760
|
const cp = ch.codePointAt(0);
|
|
760
761
|
if (cp >= 0 && cp <= 31 || cp === 127) return false;
|
|
761
762
|
}
|
|
762
|
-
const namePattern = /^[\p{L}\p{M}'
|
|
763
|
+
const namePattern = /^[\p{L}\p{M}'\-. ]+$/u;
|
|
763
764
|
if (!namePattern.test(trimmed)) return false;
|
|
764
765
|
return true;
|
|
765
766
|
}
|