mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
Removed padding from CS variant
This commit is contained in:
parent
f6054dc886
commit
1335463519
16
debug.js
16
debug.js
@ -24,7 +24,7 @@ function debug(name) {
|
||||
fmt = name
|
||||
+ ' '
|
||||
+ fmt
|
||||
+ ' ' + debug.pad(ms, 40 - fmt.length)
|
||||
+ ' +' + ms
|
||||
+ 'ms';
|
||||
|
||||
// This hackery is required for IE8
|
||||
@ -40,20 +40,6 @@ function debug(name) {
|
||||
*/
|
||||
|
||||
debug.names = [];
|
||||
|
||||
/**
|
||||
* Pad the given `str` to `len`.
|
||||
*
|
||||
* @param {String} str
|
||||
* @param {String} len
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
debug.pad = function(str, len) {
|
||||
return Array(Math.max(len, 1)).join(' ') + str;
|
||||
};
|
||||
|
||||
/**
|
||||
* Enables a debug mode by name. This can include modes
|
||||
* separated by a colon and wildcards.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user