diff --git a/src/dom-to-image-more.js b/src/dom-to-image-more.js index 33800796..2f60755f 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) {