Skip to content

Commit c8a1a37

Browse files
authored
fix(common): update parsing rule to remove dot at the beginning of sources
1 parent 6cce448 commit c8a1a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/parsing_rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const extractSourceEnhanced = (src: string, lang: string) => {
4848
if (match) {
4949
const splits = src.split(regex);
5050
const duration = +match[0].match(/\d+/)![0];
51-
const regexStartColumn = /^:/;
51+
const regexStartColumn = /^[:.]/;
5252
const regexEndColumn = /:$/;
5353

5454
const tmpAssignment = splits[0].trim();

0 commit comments

Comments
 (0)