Skip to content

Commit

Permalink
fix: annotation translation replace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Mar 13, 2024
1 parent 832b3b5 commit 4d9ad7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ export class TranslationServices {
return false;
}
// Remove possible translation results (for annotations).
const splitChar = task.raw.includes(getPref("splitChar") as string)
? ""
: getPref("splitChar");
const splitChar = (getPref("splitChar") as string).trim();
// /🔤[^🔤]*🔤/g
const regex =
splitChar === ""
Expand Down

0 comments on commit 4d9ad7b

Please sign in to comment.