@pelcro/react-pelcro-js 3.23.0-beta.12 → 3.23.0-beta.13
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.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9709,7 +9709,7 @@ function generatePassword() {
|
|
|
9709
9709
|
}
|
|
9710
9710
|
function isStringValid(str) {
|
|
9711
9711
|
// Define the regular expression to match only letters, numbers and spaces
|
|
9712
|
-
var regex = /^[
|
|
9712
|
+
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9713
9713
|
|
|
9714
9714
|
// Test the string against the regular expression
|
|
9715
9715
|
return regex.test(str);
|
package/dist/index.esm.js
CHANGED
|
@@ -9679,7 +9679,7 @@ function generatePassword() {
|
|
|
9679
9679
|
}
|
|
9680
9680
|
function isStringValid(str) {
|
|
9681
9681
|
// Define the regular expression to match only letters, numbers and spaces
|
|
9682
|
-
var regex = /^[
|
|
9682
|
+
var regex = /^(?:[\p{L}\p{N}\p{Pc}\p{Zs}\n]+$|^[\\\p{Script=Hangul}\p{Pc}\p{Zs}\n]+)$/mu;
|
|
9683
9683
|
|
|
9684
9684
|
// Test the string against the regular expression
|
|
9685
9685
|
return regex.test(str);
|