@wise/dynamic-flow-client 3.30.0 → 3.30.1
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/build/main.js +2 -2
- package/build/main.min.js +1 -1
- package/build/main.mjs +2 -2
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -7731,7 +7731,7 @@ var getBelowMinimumDateCheck = ({ minimum }, messageFunctions) => (value) => {
|
|
|
7731
7731
|
return null;
|
|
7732
7732
|
};
|
|
7733
7733
|
var getNotAdheringToPatternCheck = ({ pattern }, messageFunctions) => (value) => {
|
|
7734
|
-
if (isString(pattern) && isString(value) && !new RegExp(pattern
|
|
7734
|
+
if (isString(pattern) && isString(value) && !new RegExp(pattern).test(value)) {
|
|
7735
7735
|
return messageFunctions.pattern();
|
|
7736
7736
|
}
|
|
7737
7737
|
return null;
|
|
@@ -14632,7 +14632,7 @@ function isValidPattern(value, pattern) {
|
|
|
14632
14632
|
if (value === void 0 || value === null) {
|
|
14633
14633
|
return false;
|
|
14634
14634
|
}
|
|
14635
|
-
const regex = new RegExp(pattern
|
|
14635
|
+
const regex = new RegExp(pattern);
|
|
14636
14636
|
return Boolean(regex.test(value));
|
|
14637
14637
|
}
|
|
14638
14638
|
function isValidMaximum(value, maximum) {
|