@scenarist/core 0.4.13 → 0.4.14
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.
|
@@ -2,7 +2,7 @@ import { SerializedRegexSchema, } from "../schemas/match-criteria.js";
|
|
|
2
2
|
const testRegex = (value, pattern) => {
|
|
3
3
|
try {
|
|
4
4
|
// eslint-disable-next-line security/detect-non-literal-regexp -- Serialized patterns are schema-validated and native RegExp inputs are trusted code.
|
|
5
|
-
const regex = new RegExp(pattern.source, pattern.flags); // nosemgrep
|
|
5
|
+
const regex = new RegExp(pattern.source, pattern.flags); // nosemgrep
|
|
6
6
|
return regex.test(value);
|
|
7
7
|
}
|
|
8
8
|
catch {
|
package/package.json
CHANGED