Composer: Escape special characters in regex

v1.18.x
Micheil Smith 11 years ago
parent e860b0dd4c
commit 85cab3aec8

@ -274,7 +274,7 @@ define(['taskbar'], function(taskbar) {
}
function escapeRegExp(text) {
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
return text.replace(/[\-\[\]\{\}\(\)\*\+\?\.\,\\\^\$\|\#\s]/g, "\\$&");
}
function uploadContentFiles(params) {

Loading…
Cancel
Save