pad
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -25,3 +25,3 @@ // Generated by CoffeeScript 1.9.3 | ||
if (options.colors) { | ||
escapecolor = /\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/g; | ||
escapecolor = /\x1B\[(?:[0-9]{1,2}(?:;[0-9]{1,2})?)?[m|K]/g; | ||
length += text.length - text.replace(escapecolor, '').length; | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "pad", | ||
"version": "1.0.0", | ||
"description": "Left and right string padding", | ||
"version": "1.0.1", | ||
"author": "David Worms <david@adaltas.com>", | ||
"license": "BSD-3-Clause", | ||
"contributors": [ | ||
{ "name": "David Worms", "email": "david@adaltas.com" } | ||
{ | ||
"name": "David Worms", | ||
"email": "david@adaltas.com" | ||
} | ||
], | ||
"devDependencies": { | ||
"mocha": "^2.3.3", | ||
"coffee-script": "^1.10.0", | ||
"should": "^7.1.0" | ||
"mocha": "^3.0.2", | ||
"should": "^11.1.0" | ||
}, | ||
@@ -18,3 +20,8 @@ "engines": { | ||
}, | ||
"keywords": ["string", "pad"], | ||
"keywords": [ | ||
"pad", | ||
"string" | ||
], | ||
"license": "BSD-3-Clause", | ||
"main": "./lib", | ||
"repository": { | ||
@@ -24,8 +31,7 @@ "type": "git", | ||
}, | ||
"main": "./lib", | ||
"scripts": { | ||
"coffee": "./node_modules/.bin/coffee -b -o lib src", | ||
"pretest": "./node_modules/.bin/coffee -b -o lib src", | ||
"test": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter dot" | ||
"coffee": "coffee -b -o lib src", | ||
"pretest": "coffee -b -o lib src", | ||
"test": "mocha --compilers coffee:coffee-script/register --reporter dot" | ||
} | ||
} |
5871