From f91eaa79eea91d67c5b3fd8ec7a8b390fd6bc293 Mon Sep 17 00:00:00 2001 From: kyklish Date: Fri, 24 May 2024 13:25:36 +0300 Subject: [PATCH] fix label's regex --- src/parser/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/parser.ts b/src/parser/parser.ts index b9273022..00462489 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -223,7 +223,7 @@ export class Parser { private static getLabelByLine(document: vscode.TextDocument, line: number) { const text = CodeUtil.purify(document.lineAt(line).text); // [\u4e00-\u9fa5] Chinese unicode characters - const label = /^[ \t]*([\u4e00-\u9fa5_a-zA-Z0-9]+) *:{1}(?!(:|=))/.exec( + const label = /^[ \t]*([\u4e00-\u9fa5_a-zA-Z0-9]+):{1}(?!(:|=))/.exec( text, ); if (label) {