Skip to content

Commit

Permalink
Fix #1033
Browse files Browse the repository at this point in the history
  • Loading branch information
svdb99 committed Nov 26, 2024
1 parent cea034c commit 13e24e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { seal } from './utils.js';
// eslint-disable-next-line unicorn/better-regex
export const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
export const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
export const TMPLIT_EXPR = seal(/\${[\w\W]*}/gm);
export const TMPLIT_EXPR = seal(/\$\{[\w\W]*}/gm);

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (16.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (17.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (18.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (19.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (20.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.

Check failure on line 6 in src/regexp.ts

View workflow job for this annotation

GitHub Actions / install (21.x)

/\$\{[\w\W]*}/gm can be optimized to /\${[\w\W]*}/gm.
export const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]/); // eslint-disable-line no-useless-escape
export const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
export const IS_ALLOWED_URI = seal(
Expand Down

0 comments on commit 13e24e5

Please sign in to comment.