Skip to content

Commit ad2bb59

Browse files
authored
Merge pull request #188 from SeanZhang-eaton/fix/font_icon_issue
Fix URL regex rules, solving most font icon URL replacement issues
2 parents c5fe01f + 22a4439 commit ad2bb59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dom-to-image-more.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@
950950
}
951951

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

956956
function delay(ms) {

0 commit comments

Comments
 (0)