Skip to content

Commit

Permalink
chore(deps): update dependency @eslint-community/regexpp to v4.6.0 (#…
Browse files Browse the repository at this point in the history
…7311)

* chore(deps): update dependency @eslint-community/regexpp to v4.6.0

* Update to unicode for deprecation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
  • Loading branch information
renovate[bot] and JoshuaKGoldberg committed Jul 26, 2023
1 parent 27aa037 commit a56af12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,13 @@ export default createRule({
/**
* Parse a given `RegExp` pattern to that string if it's a static string.
* @param pattern The RegExp pattern text to parse.
* @param uFlag The Unicode flag of the RegExp.
* @param unicode Whether the RegExp is unicode.
*/
function parseRegExpText(pattern: string, uFlag: boolean): string | null {
function parseRegExpText(pattern: string, unicode: boolean): string | null {
// Parse it.
const ast = regexpp.parsePattern(pattern, undefined, undefined, uFlag);
const ast = regexpp.parsePattern(pattern, undefined, undefined, {
unicode,
});
if (ast.alternatives.length !== 1) {
return null;
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2348,9 +2348,9 @@
eslint-visitor-keys "^3.3.0"

"@eslint-community/regexpp@^4.4.0", "@eslint-community/regexpp@^4.5.1":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884"
integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==
version "4.6.1"
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.6.1.tgz#0b371c118b8e4ebf9dbddb56120ab4befd791211"
integrity sha512-O7x6dMstWLn2ktjcoiNLDkAGG2EjveHL+Vvc+n0fXumkJYAcSqcVYKtwDU+hDZ0uDUsnUagSYaZrOLAYE8un1A==

"@eslint/eslintrc@^2.1.0":
version "2.1.0"
Expand Down

0 comments on commit a56af12

Please sign in to comment.