@fkui/logic 5.46.0 → 5.46.4
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/cjs/index.js +2 -1
- package/lib/esm/index.js +2 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -4855,7 +4855,8 @@ const WHITELIST_REGEXP = /^[a-zA-Z0-9 .,\-()\r\n?+=!:@*\xC0-\xFF]*$/;
|
|
|
4855
4855
|
const whitelistValidator = {
|
|
4856
4856
|
name: "whitelist",
|
|
4857
4857
|
instant: true,
|
|
4858
|
-
validation(
|
|
4858
|
+
validation(_value, element) {
|
|
4859
|
+
const value = "value" in element ? element.value : "";
|
|
4859
4860
|
return isEmpty(value) || WHITELIST_REGEXP.test(value);
|
|
4860
4861
|
},
|
|
4861
4862
|
};
|
package/lib/esm/index.js
CHANGED
|
@@ -4853,7 +4853,8 @@ const WHITELIST_REGEXP = /^[a-zA-Z0-9 .,\-()\r\n?+=!:@*\xC0-\xFF]*$/;
|
|
|
4853
4853
|
const whitelistValidator = {
|
|
4854
4854
|
name: "whitelist",
|
|
4855
4855
|
instant: true,
|
|
4856
|
-
validation(
|
|
4856
|
+
validation(_value, element) {
|
|
4857
|
+
const value = "value" in element ? element.value : "";
|
|
4857
4858
|
return isEmpty(value) || WHITELIST_REGEXP.test(value);
|
|
4858
4859
|
},
|
|
4859
4860
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fkui/logic",
|
|
3
|
-
"version": "5.46.
|
|
3
|
+
"version": "5.46.4",
|
|
4
4
|
"description": "Logic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fkui",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"node": ">= 20",
|
|
68
68
|
"npm": ">= 7"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b9e3a3c9b316c67a6657f06a8fe65a4790e7bece"
|
|
71
71
|
}
|