Skip to content

Commit

Permalink
fix label's regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kyklish committed May 24, 2024
1 parent 6efd95c commit f91eaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f91eaa7

Please sign in to comment.