From c8a1a372ecce4a7ef949f0310afd579a1e678f35 Mon Sep 17 00:00:00 2001 From: "Rasamoelina, Haja Onjatiana" <26148770+rhahao@users.noreply.github.com> Date: Wed, 13 Dec 2023 20:33:37 +0300 Subject: [PATCH] fix(common): update parsing rule to remove dot at the beginning of sources --- src/common/parsing_rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/parsing_rules.ts b/src/common/parsing_rules.ts index 6bc5f7c5..35a3a97f 100644 --- a/src/common/parsing_rules.ts +++ b/src/common/parsing_rules.ts @@ -48,7 +48,7 @@ export const extractSourceEnhanced = (src: string, lang: string) => { if (match) { const splits = src.split(regex); const duration = +match[0].match(/\d+/)![0]; - const regexStartColumn = /^:/; + const regexStartColumn = /^[:.]/; const regexEndColumn = /:$/; const tmpAssignment = splits[0].trim();