Skip to content

Commit 22a4439

Browse files
fix: fix url regex rules, solve most font icon url replacement issue
1 parent e7d6ab0 commit 22a4439

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)