Skip to content

Commit

Permalink
fix: unexpected escaped quotes (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Dec 23, 2023
1 parent fa07895 commit f71ca7f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/timeline/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ export class TranslatedTimelineProvider implements TextDocumentContentProvider {
[
syncMatched.groups?.keyword,
'/',
// replace / to \/
replacedSyncKey.replace(/\//g, '\\/'),
replacedSyncKey,
'/',
].join(''),
)
Expand All @@ -200,8 +199,7 @@ export class TranslatedTimelineProvider implements TextDocumentContentProvider {
[
textMatched.groups?.time,
'"',
// replace " to \"
replacedTextKey.replace(/"/g, '\\"'),
replacedTextKey,
'"',
].join(''),
)
Expand Down

0 comments on commit f71ca7f

Please sign in to comment.