@intentius/chant-lexicon-aws 0.0.18 → 0.0.24

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.
@@ -73,6 +73,10 @@ function matchesCondition(condition: unknown, properties: Record<string, unknown
73
73
  if ("enum" in s && Array.isArray(s.enum)) {
74
74
  if (!s.enum.includes(properties[propName])) return false;
75
75
  }
76
+ if ("pattern" in s && typeof s.pattern === "string") {
77
+ const val = properties[propName];
78
+ if (typeof val !== "string" || !new RegExp(s.pattern).test(val)) return false;
79
+ }
76
80
  }
77
81
  }
78
82