Comparing version 2.2.2 to 2.2.3
# Changelog | ||
## Version 2.2.3 | ||
* wcwidth: pass configuration | ||
## Version 2.2.2 | ||
@@ -5,0 +9,0 @@ |
@@ -48,3 +48,3 @@ "use strict"; | ||
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth(textnocolors || text, options.wcwidth_options); | ||
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth.config(options.wcwidth_options)(textnocolors || text); | ||
@@ -51,0 +51,0 @@ if (padlength < 0) { |
@@ -35,3 +35,3 @@ // Generated by CoffeeScript 2.3.2 | ||
} | ||
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth(textnocolors || text, options.wcwidth_options); | ||
padlength = options.fixed_width ? length - (textnocolors || text).length : length - wcwidth.config(options.wcwidth_options)(textnocolors || text); | ||
if (padlength < 0) { | ||
@@ -38,0 +38,0 @@ if (options.strip) { |
{ | ||
"name": "pad", | ||
"description": "Left and right string padding", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"author": "David Worms <david@adaltas.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
11113