Skip to content

Commit

Permalink
fix: replaceAll bug (twilio#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuj Badhwar committed Sep 24, 2021
1 parent 60207e0 commit 3e85ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/twilio-api/get-flag-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const scanForUrl = (description) => {
const url = details[1].substr(0, details[1].indexOf(')')); // takes out url from (url)

const hyperLink = urlUtil.convertToHyperlink(text, url);
description = description.replaceAll(match, hyperLink.url);
description = description.replace(match, hyperLink.url);
}

return description;
Expand Down

0 comments on commit 3e85ed2

Please sign in to comment.