Skip to content

Commit

Permalink
🏡 Fixed replaceAll
Browse files Browse the repository at this point in the history
  • Loading branch information
NightStrang6r committed Feb 2, 2023
1 parent 162ba30 commit 6659e77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6659e77

Please sign in to comment.