mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
dist: recompile
This commit is contained in:
parent
93c759961d
commit
3add08ea0c
4
dist/debug.js
vendored
4
dist/debug.js
vendored
@ -67,7 +67,7 @@ function formatArgs() {
|
||||
+ (useColors ? '%c ' : ' ')
|
||||
+ '+' + exports.humanize(this.diff);
|
||||
|
||||
if (!useColors) return args
|
||||
if (!useColors) return args;
|
||||
|
||||
var c = 'color: ' + this.color;
|
||||
args = [args[0], c, ''].concat(Array.prototype.slice.call(args, 1));
|
||||
@ -288,7 +288,7 @@ function enable(namespaces) {
|
||||
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (!split[i]) continue; // ignore empty strings
|
||||
namespaces = split[i].replace('*', '.*?');
|
||||
namespaces = split[i].replace(/\*/g, '.*?');
|
||||
if (namespaces[0] === '-') {
|
||||
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user