html-validate 7.1.0 → 7.1.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/dist/es/core.js CHANGED
@@ -2615,12 +2615,15 @@ class Validator {
2615
2615
  if (value === null || value === undefined) {
2616
2616
  return false;
2617
2617
  }
2618
+ const caseInsensitiveValue = value.toLowerCase();
2618
2619
  return rule.enum.some((entry) => {
2619
2620
  if (entry instanceof RegExp) {
2621
+ /* regular expressions are matched case-sensitive */
2620
2622
  return !!value.match(entry);
2621
2623
  }
2622
2624
  else {
2623
- return value === entry;
2625
+ /* strings matched case-insensitive */
2626
+ return caseInsensitiveValue === entry;
2624
2627
  }
2625
2628
  });
2626
2629
  }
@@ -3083,7 +3086,7 @@ var TRANSFORMER_API;
3083
3086
  /** @public */
3084
3087
  const name = "html-validate";
3085
3088
  /** @public */
3086
- const version = "7.1.0";
3089
+ const version = "7.1.1";
3087
3090
  /** @public */
3088
3091
  const homepage = "https://html-validate.org";
3089
3092
  /** @public */