diff options
author | Ajay Ramachandran <[email protected]> | 2021-07-14 15:28:38 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-07-14 15:28:38 -0400 |
commit | 528b475429bf1ad83edc23e24dbe25e1bc2774a1 (patch) | |
tree | 6f55ddf136571613fc5c7b5169cdb6606d01a708 /src | |
parent | e39b441c1616b359ba3ee59bf53b35c958bb756e (diff) | |
download | SponsorBlock-528b475429bf1ad83edc23e24dbe25e1bc2774a1.tar.gz SponsorBlock-528b475429bf1ad83edc23e24dbe25e1bc2774a1.zip |
Fix quotations not working in localisation
Diffstat (limited to 'src')
-rw-r--r-- | src/utils.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.ts b/src/utils.ts index 02e2447e..da12b51b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -268,8 +268,10 @@ export default class Utils { } getLocalizedMessage(text: string): string | false { + console.log(chrome.i18n.getMessage("forceChannelCheckPopup")); const valNewH = text.replace(/__MSG_(\w+)__/g, function(match, v1) { - return v1 ? chrome.i18n.getMessage(v1).replace("\n", "<br/>") : ""; + return v1 ? chrome.i18n.getMessage(v1).replaceAll("<", "<") + .replaceAll('"', """).replaceAll("\n", "<br/>") : ""; }); if(valNewH != text) { |