Composer: Escape special characters in regex

This commit is contained in:
Micheil Smith
2014-04-10 20:24:30 +01:00
parent e860b0dd4c
commit 85cab3aec8

View File

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