From 22a4439fceedcd007f09ac1bbb5bc5f534cf8865 Mon Sep 17 00:00:00 2001 From: SeanZhang-eaton <99795768+SeanZhang-eaton@users.noreply.github.com> Date: Thu, 12 Sep 2024 05:38:26 +0000 Subject: [PATCH] fix: fix url regex rules, solve most font icon url replacement issue --- src/dom-to-image-more.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom-to-image-more.js b/src/dom-to-image-more.js index 974cbe1c..f34244c2 100644 --- a/src/dom-to-image-more.js +++ b/src/dom-to-image-more.js @@ -950,7 +950,7 @@ } function escapeRegEx(string) { - return string.replace(/([.*+?^${}()|[]\/\\])/g, '\\$1'); + return string.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1'); } function delay(ms) {