@@ -66,11 +66,11 @@ string.js - Copyright (C) 2012-2014, JP Richardson <
[email protected] >
66
66
var s = this . s ;
67
67
var startPos = s . indexOf ( left ) ;
68
68
var endPos = s . indexOf ( right , startPos + left . length ) ;
69
- if ( endPos == - 1 && right != null )
69
+ if ( endPos == - 1 && right != null )
70
70
return new this . constructor ( '' )
71
71
else if ( endPos == - 1 && right == null )
72
72
return new this . constructor ( s . substring ( startPos + left . length ) )
73
- else
73
+ else
74
74
return new this . constructor ( s . slice ( startPos + left . length , endPos ) ) ;
75
75
} ,
76
76
@@ -146,7 +146,7 @@ string.js - Copyright (C) 2012-2014, JP Richardson <
[email protected] >
146
146
. replace ( / & ( [ ^ ; \W ] + ; ? ) / g, function ( m , e ) {
147
147
var ee = e . replace ( / ; $ / , '' ) ;
148
148
var target = ENTITIES [ e ] || ( e . match ( / ; $ / ) && ENTITIES [ ee ] ) ;
149
-
149
+
150
150
if ( typeof target === 'number' ) {
151
151
return String . fromCharCode ( target ) ;
152
152
}
@@ -231,7 +231,7 @@ string.js - Copyright (C) 2012-2014, JP Richardson <
[email protected] >
231
231
return this . right ( - N ) ;
232
232
}
233
233
} ,
234
-
234
+
235
235
lines : function ( ) { //convert windows newlines to unix newlines then convert to an Array of lines
236
236
return this . replaceAll ( '\r\n' , '\n' ) . s . split ( '\n' ) ;
237
237
} ,
@@ -475,9 +475,9 @@ string.js - Copyright (C) 2012-2014, JP Richardson <
[email protected] >
475
475
476
476
trim : function ( ) {
477
477
var s ;
478
- if ( typeof __nsp . trim === 'undefined' )
478
+ if ( typeof __nsp . trim === 'undefined' )
479
479
s = this . s . replace ( / ( ^ \s * | \s * $ ) / g, '' )
480
- else
480
+ else
481
481
s = this . s . trim ( )
482
482
return new this . constructor ( s ) ;
483
483
} ,
@@ -561,19 +561,19 @@ string.js - Copyright (C) 2012-2014, JP Richardson <
[email protected] >
561
561
var shouldQualify = hasVal ( qualifier )
562
562
if ( typeof dataArray [ i ] == 'number' )
563
563
shouldQualify &= encloseNumbers ;
564
-
564
+
565
565
if ( shouldQualify )
566
566
buildString . push ( qualifier ) ;
567
-
567
+
568
568
if ( dataArray [ i ] !== null && dataArray [ i ] !== undefined ) {
569
569
var d = new S ( dataArray [ i ] ) . replaceAll ( qualifier , rep ) . s ;
570
570
buildString . push ( d ) ;
571
- } else
571
+ } else
572
572
buildString . push ( '' )
573
573
574
574
if ( shouldQualify )
575
575
buildString . push ( qualifier ) ;
576
-
576
+
577
577
if ( delim )
578
578
buildString . push ( delim ) ;
579
579
}
0 commit comments