diff --git a/src/storage.js b/src/storage.js index df8f527..e71a424 100644 --- a/src/storage.js +++ b/src/storage.js @@ -290,7 +290,8 @@ async function loadAutoIssueFile() { } function replaceAll(string, find, replace) { - return string.replace(new RegExp(find, 'g'), replace); + while(string.includes(find)) string = string.replace(find, replace); + return string; } async function askSettings() {