Skip to content

Commit

Permalink
Merge pull request #188 from SeanZhang-eaton/fix/font_icon_issue
Browse files Browse the repository at this point in the history
Fix URL regex rules, solving most font icon URL replacement issues
  • Loading branch information
IDisposable authored Sep 12, 2024
2 parents c5fe01f + 22a4439 commit ad2bb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom-to-image-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@
}

function escapeRegEx(string) {
return string.replace(/([.*+?^${}()|[]\/\\])/g, '\\$1');
return string.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
}

function delay(ms) {
Expand Down

0 comments on commit ad2bb59

Please sign in to comment.