Skip to content
Browse files

[minor] fixed some style issues

  • Loading branch information...
1 parent 20982bb commit ebabfffd75b1010b31a83bf5e05448bbf249b61a nicoreed committed Jun 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cliff.js
View
6 lib/cliff.js
@@ -97,7 +97,7 @@ cliff.stringifyRows = function (rows, colors) {
for (i = 0; i < row.length; i += 1) {
item = cliff.stringifyLiteral(row[i]);
item = colorize ? item[colors[i]] : item;
- length = real_length(item);
+ length = realLength(item);
padding = length < lengths[i] ? lengths[i] - length + 2 : 2;
rowtext += item + new Array(padding).join(' ');
}
@@ -242,14 +242,14 @@ cliff.typeOf = function typeOf (value) {
return s;
}
-var real_length = function (str) {
+var realLength = function (str) {
return ("" + str).replace(/\u001b\[\d+m/g,'').length;
}
var longestElement = function (a) {
var l = 0;
for (var i = 0; i < a.length; i++) {
- var new_l = real_length(a[i]);
+ var new_l = realLength(a[i]);
if (l < new_l) {
l = new_l;
}

0 comments on commit ebabfff

Please sign in to comment.
Something went wrong with that request. Please try again.