diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index aaad8235bf..a984522ee8 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -274,7 +274,7 @@ define(['taskbar'], function(taskbar) { } function escapeRegExp(text) { - return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + return text.replace(/[\-\[\]\{\}\(\)\*\+\?\.\,\\\^\$\|\#\s]/g, "\\$&"); } function uploadContentFiles(params) {