From 0b558b1ba651cdeaee0db7be2fb1ee1d40642f51 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Thu, 24 Oct 2024 18:18:59 +0200 Subject: [PATCH] chore(deps): update dev dependencies --- lib/react-utils.js | 5 ++++- package.json | 14 +++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/react-utils.js b/lib/react-utils.js index f03ef46..4e8d51d 100644 --- a/lib/react-utils.js +++ b/lib/react-utils.js @@ -1,14 +1,17 @@ +/* eslint-disable regexp/no-useless-range */ + // *** REACT BORROWED *** const ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; const ATTRIBUTE_NAME_CHAR = + // eslint-disable-next-line regexp/prefer-w ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; // eslint-disable-next-line no-misleading-character-class const VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); -const VALID_TAG_REGEX = /^[A-Za-z][\w.:-]*$/; // Simplified subset +const VALID_TAG_REGEX = /^[a-z][\w.:-]*$/i; // Simplified subset /** @type {Map} */ const validatedTagCache = new Map(); diff --git a/package.json b/package.json index 64ff151..d6fb521 100644 --- a/package.json +++ b/package.json @@ -93,27 +93,27 @@ "@skypack/package-check": "^0.2.2", "@types/chai": "^4.3.20", "@types/chai-as-promised": "^7.1.8", - "@types/mocha": "^10.0.8", - "@types/node": "^18.19.54", + "@types/mocha": "^10.0.9", + "@types/node": "^18.19.59", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^3.2.12", - "@voxpelli/eslint-config": "^21.0.0", + "@voxpelli/eslint-config": "^22.0.0", "@voxpelli/tsconfig": "^15.0.0", "c8": "^10.1.2", "chai": "^4.5.0", "chai-as-promised": "^7.1.2", - "eslint": "^9.11.1", + "eslint": "^9.13.0", "husky": "^9.1.6", "installed-check": "^9.3.0", - "knip": "^5.30.6", + "knip": "^5.34.0", "linemod": "^2.0.1", "mocha": "^10.7.3", "nodemon": "^3.1.7", - "npm-run-all2": "^6.2.3", + "npm-run-all2": "^6.2.6", "sinon": "^19.0.2", "sinon-chai": "^3.7.0", "tsd": "^0.31.2", - "type-coverage": "^2.29.1", + "type-coverage": "^2.29.7", "typescript": "~5.6.2", "validate-conventional-commit": "^1.0.4" }