From c1943f760de0b38da36782eb5282577e0db4b65f Mon Sep 17 00:00:00 2001 From: tomaz1502 Date: Tue, 6 Feb 2024 00:02:07 +0100 Subject: [PATCH] fix string regex and remove greedy from comments --- components/prism-lean.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/prism-lean.js b/components/prism-lean.js index 6c75c03b0..94ef27464 100644 --- a/components/prism-lean.js +++ b/components/prism-lean.js @@ -16,7 +16,6 @@ // OK 'comment': { pattern: /(?:\/--[\s\S]*?-\/)|(?:\/-![\s\S]*?-\/)|(?:\/-[\s\S]*?-\/)|--.*$/m, - greedy: true }, 'keyword': [ @@ -45,7 +44,7 @@ 'string': [ /"[^"]*"/, - /'[^']*'/ + /'[^']'/ ], 'quotation': {