We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b82d4e6 commit 94d78b5Copy full SHA for 94d78b5
debug.js
@@ -49,12 +49,12 @@ var prevTime;
49
50
function selectColor(namespace) {
51
var hash = 0, i;
52
-
+
53
for (i in namespace) {
54
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
55
hash |= 0; // Convert to 32bit integer
56
}
57
58
return exports.colors[Math.abs(hash) % exports.colors.length];
59
60
@@ -123,7 +123,7 @@ function createDebug(namespace) {
123
debug.namespace = namespace;
124
debug.enabled = exports.enabled(namespace);
125
debug.useColors = exports.useColors();
126
- debug.color = selectColor(namespae);
+ debug.color = selectColor(namespace);
127
128
// env-specific initialization logic for debug instances
129
if ('function' === typeof exports.init) {
0 commit comments