Skip to content

Commit 7826965

Browse files
committed
lib/string: removed leading spaces
1 parent c452181 commit 7826965

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/string.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
6666
var s = this.s;
6767
var startPos = s.indexOf(left);
6868
var endPos = s.indexOf(right, startPos + left.length);
69-
if (endPos == -1 && right != null)
69+
if (endPos == -1 && right != null)
7070
return new this.constructor('')
7171
else if (endPos == -1 && right == null)
7272
return new this.constructor(s.substring(startPos + left.length))
73-
else
73+
else
7474
return new this.constructor(s.slice(startPos + left.length, endPos));
7575
},
7676

@@ -146,7 +146,7 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
146146
.replace(/&([^;\W]+;?)/g, function (m, e) {
147147
var ee = e.replace(/;$/, '');
148148
var target = ENTITIES[e] || (e.match(/;$/) && ENTITIES[ee]);
149-
149+
150150
if (typeof target === 'number') {
151151
return String.fromCharCode(target);
152152
}
@@ -231,7 +231,7 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
231231
return this.right(-N);
232232
}
233233
},
234-
234+
235235
lines: function() { //convert windows newlines to unix newlines then convert to an Array of lines
236236
return this.replaceAll('\r\n', '\n').s.split('\n');
237237
},
@@ -475,9 +475,9 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
475475

476476
trim: function() {
477477
var s;
478-
if (typeof __nsp.trim === 'undefined')
478+
if (typeof __nsp.trim === 'undefined')
479479
s = this.s.replace(/(^\s*|\s*$)/g, '')
480-
else
480+
else
481481
s = this.s.trim()
482482
return new this.constructor(s);
483483
},
@@ -561,19 +561,19 @@ string.js - Copyright (C) 2012-2014, JP Richardson <[email protected]>
561561
var shouldQualify = hasVal(qualifier)
562562
if (typeof dataArray[i] == 'number')
563563
shouldQualify &= encloseNumbers;
564-
564+
565565
if (shouldQualify)
566566
buildString.push(qualifier);
567-
567+
568568
if (dataArray[i] !== null && dataArray[i] !== undefined) {
569569
var d = new S(dataArray[i]).replaceAll(qualifier, rep).s;
570570
buildString.push(d);
571-
} else
571+
} else
572572
buildString.push('')
573573

574574
if (shouldQualify)
575575
buildString.push(qualifier);
576-
576+
577577
if (delim)
578578
buildString.push(delim);
579579
}

0 commit comments

Comments
 (0)