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/cjs/core.js CHANGED
@@ -2646,12 +2646,15 @@ class Validator {
2646
2646
  if (value === null || value === undefined) {
2647
2647
  return false;
2648
2648
  }
2649
+ const caseInsensitiveValue = value.toLowerCase();
2649
2650
  return rule.enum.some((entry) => {
2650
2651
  if (entry instanceof RegExp) {
2652
+ /* regular expressions are matched case-sensitive */
2651
2653
  return !!value.match(entry);
2652
2654
  }
2653
2655
  else {
2654
- return value === entry;
2656
+ /* strings matched case-insensitive */
2657
+ return caseInsensitiveValue === entry;
2655
2658
  }
2656
2659
  });
2657
2660
  }
@@ -3114,7 +3117,7 @@ var TRANSFORMER_API;
3114
3117
  /** @public */
3115
3118
  const name = "html-validate";
3116
3119
  /** @public */
3117
- const version = "7.1.0";
3120
+ const version = "7.1.1";
3118
3121
  /** @public */
3119
3122
  const homepage = "https://html-validate.org";
3120
3123
  /** @public */