We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4e36a8 + 8dd8345 commit 0682a14Copy full SHA for 0682a14
1 file changed
debug.js
@@ -141,7 +141,7 @@ function enable(namespaces) {
141
142
for (var i = 0; i < len; i++) {
143
if (!split[i]) continue; // ignore empty strings
144
- namespaces = split[i].replace(/\*/g, '.*?');
+ namespaces = split[i].replace(/[\\^$+?.()|[\]{}]/g, '\\$&').replace(/\*/g, '.*?');
145
if (namespaces[0] === '-') {
146
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
147
} else {
0 commit comments