From fd015f147da064c40940491495cd06fc4476d178 Mon Sep 17 00:00:00 2001 From: WizardMeow Date: Thu, 21 Nov 2024 07:12:10 +0800 Subject: [PATCH] fix: update punctuation regex syntax for compatibility (#3540) 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]*?(?:(?=[\\