From 0ce859a078b68cfb7ebcc600a6cd0775eb71e22a Mon Sep 17 00:00:00 2001 From: Marcel Schaeben Date: Fri, 13 Dec 2024 19:16:29 +0100 Subject: [PATCH] Allow * in user defined chord names --- src/chordsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chordsUtils.ts b/src/chordsUtils.ts index 448863d..ff1102c 100644 --- a/src/chordsUtils.ts +++ b/src/chordsUtils.ts @@ -105,7 +105,7 @@ export function tokenizeLine(line: string, lineIndex: number, chordLineMarker: s const textLineMarkerPattern = escapeStringRegexp(textLineMarker); const tokenPattern = new RegExp( - `(?
(?<=^\\s*)(\\[)([^\\]]+)(])(?=\\s*$))|(?${textLineMarkerPattern}|${chordLineMarkerPattern})\\s*$|(?(\\[)(\\S+)([^\\[()]*)(]))|(?([A-Z][A-Za-z0-9#()+-°/]*)\\[(([0-9]+)\\|)?([0-9x_]+)])|(?([[\\]/|%]+)|[^\\s\\[]+)|(?\\s+)`, + `(?
(?<=^\\s*)(\\[)([^\\]]+)(])(?=\\s*$))|(?${textLineMarkerPattern}|${chordLineMarkerPattern})\\s*$|(?(\\[)(\\S+)([^\\[()]*)(]))|(?([A-Z][A-Za-z0-9#()+-°/*]*)\\[(([0-9]+)\\|)?([0-9x_]+)])|(?([[\\]/|%]+)|[^\\s\\[]+)|(?\\s+)`, "gd"); const tokens: Token[] = [];