We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ca12f commit 8dd8345Copy full SHA for 8dd8345
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