Skip to content

Commit

Permalink
fix: fix url regex rules, solve most font icon url replacement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanZhang-eaton committed Sep 12, 2024
1 parent e7d6ab0 commit 22a4439
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 22a4439

Please sign in to comment.