From 13e24e5af9e39a923d75d9b02d3ea992289ff9b6 Mon Sep 17 00:00:00 2001 From: "stefaan.vandenbussch" Date: Tue, 26 Nov 2024 19:45:28 +0100 Subject: [PATCH 1/3] Fix #1033 --- src/regexp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp.ts b/src/regexp.ts index 737862983..80f06738b 100644 --- a/src/regexp.ts +++ b/src/regexp.ts @@ -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); 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( From 0217da11a11e8da6a1510b3a395da0fc214e862f Mon Sep 17 00:00:00 2001 From: "stefaan.vandenbussch" Date: Fri, 29 Nov 2024 10:52:51 +0100 Subject: [PATCH 2/3] Fix #1033 --- src/regexp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp.ts b/src/regexp.ts index 80f06738b..75de90c4d 100644 --- a/src/regexp.ts +++ b/src/regexp.ts @@ -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); // eslint-disable-line no-useless-escape 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( From b9e9087df30bd2cf9b76245da8eb628dc815531d Mon Sep 17 00:00:00 2001 From: "stefaan.vandenbussch" Date: Fri, 29 Nov 2024 11:20:16 +0100 Subject: [PATCH 3/3] Fix #1033 --- src/regexp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp.ts b/src/regexp.ts index 75de90c4d..2d15f46ac 100644 --- a/src/regexp.ts +++ b/src/regexp.ts @@ -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); // eslint-disable-line no-useless-escape +export const TMPLIT_EXPR = seal(/\$\{[\w\W]*}/gm); // eslint-disable-line unicorn/better-regex 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(