File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 22
22
typeof exports == 'object' ? exports :
23
23
// create or extend NW namespace
24
24
( ( global . NW || ( global . NW = { } ) ) &&
25
- ( global . NW . Dom || ( global . NW . Dom = { } ) ) ,
25
+ ( global . NW . Dom || ( global . NW . Dom = { } ) ) ) ,
26
26
27
27
Contexts = { } ,
28
28
Results = { } ,
Original file line number Diff line number Diff line change 205
205
return str . replace ( reEscapedChars ,
206
206
function ( substring , p1 , p2 ) {
207
207
return p2 ? '\\' + p2 :
208
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
209
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
208
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
209
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
210
210
p1 ;
211
211
}
212
212
) ;
217
217
return str . replace ( reEscapedChars ,
218
218
function ( substring , p1 , p2 ) {
219
219
return p2 ? p2 :
220
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
221
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
220
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
221
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
222
222
p1 ;
223
223
}
224
224
) ;
Original file line number Diff line number Diff line change 208
208
return str . replace ( reEscapedChars ,
209
209
function ( substring , p1 , p2 ) {
210
210
return p2 ? '\\' + p2 :
211
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
212
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
211
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
212
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
213
213
p1 ;
214
214
}
215
215
) ;
220
220
return str . replace ( reEscapedChars ,
221
221
function ( substring , p1 , p2 ) {
222
222
return p2 ? p2 :
223
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
224
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
223
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
224
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
225
225
p1 ;
226
226
}
227
227
) ;
Original file line number Diff line number Diff line change 536
536
// unescaped " or '
537
537
return p2 ? '\\' + p2 :
538
538
// javascript strings are UTF-16 encoded
539
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
539
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? codePointToUTF16 ( parseInt ( p1 , 16 ) ) :
540
540
// \' \"
541
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
541
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
542
542
// \g \h \. \# etc
543
543
p1 ;
544
544
}
554
554
// unescaped " or '
555
555
return p2 ? p2 :
556
556
// javascript strings are UTF-16 encoded
557
- / ^ [ 0 - 9 a - f A - F ] / . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
557
+ ( / ^ [ 0 - 9 a - f A - F ] / ) . test ( p1 ) ? stringFromCodePoint ( parseInt ( p1 , 16 ) ) :
558
558
// \' \"
559
- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
559
+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
560
560
// \g \h \. \# etc
561
561
p1 ;
562
562
}
You can’t perform that action at this time.
0 commit comments