From d5cf4a69ee0a2c364d9272017624b01cbb08cb34 Mon Sep 17 00:00:00 2001 From: Rui Chen <77432836+sharpchen@users.noreply.github.com> Date: Sun, 18 Aug 2024 04:13:11 +0800 Subject: [PATCH] fix(transformers): support more comment style for notation transformer (#745) --- packages/transformers/src/transformers/notation-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/transformers/src/transformers/notation-map.ts b/packages/transformers/src/transformers/notation-map.ts index 1afe818b9..1e2940852 100644 --- a/packages/transformers/src/transformers/notation-map.ts +++ b/packages/transformers/src/transformers/notation-map.ts @@ -24,7 +24,7 @@ export function transformerNotationMap( return createCommentNotationTransformer( name, - new RegExp(`\\s*(?://|/\\*|)?`), + new RegExp(`\\s*(?://|/\\*|)?\\s*$`), function ([_, match, range = ':1'], _line, _comment, lines, index) { const lineNum = Number.parseInt(range.slice(1), 10) lines