From 068051eb62ef7d9c6653318759c1a1a858628555 Mon Sep 17 00:00:00 2001 From: WizardMeow Date: Wed, 20 Nov 2024 21:02:48 +0800 Subject: [PATCH] fix: update punctuation regex syntax for compatibility change the string to a regular expression. Then babel can transpile it correctly. --- src/rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules.ts b/src/rules.ts index 686efb61bd..2181cf510b 100644 --- a/src/rules.ts +++ b/src/rules.ts @@ -243,7 +243,7 @@ const br = /^( {2,}|\\)\n(?!\s*$)/; const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\