We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0805cc commit 9b33412Copy full SHA for 9b33412
src/common.js
@@ -179,7 +179,7 @@ function setup(env) {
179
namespaces = split[i].replace(/\*/g, '.*?');
180
181
if (namespaces[0] === '-') {
182
- createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
+ createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
183
} else {
184
createDebug.names.push(new RegExp('^' + namespaces + '$'));
185
}
0 commit comments