File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 typeof exports == 'object' ? exports :
2323 // create or extend NW namespace
2424 ( ( global . NW || ( global . NW = { } ) ) &&
25- ( global . NW . Dom || ( global . NW . Dom = { } ) ) ,
25+ ( global . NW . Dom || ( global . NW . Dom = { } ) ) ) ,
2626
2727 Contexts = { } ,
2828 Results = { } ,
Original file line number Diff line number Diff line change 205205 return str . replace ( reEscapedChars ,
206206 function ( substring , p1 , p2 ) {
207207 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 :
210210 p1 ;
211211 }
212212 ) ;
217217 return str . replace ( reEscapedChars ,
218218 function ( substring , p1 , p2 ) {
219219 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 :
222222 p1 ;
223223 }
224224 ) ;
Original file line number Diff line number Diff line change 208208 return str . replace ( reEscapedChars ,
209209 function ( substring , p1 , p2 ) {
210210 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 :
213213 p1 ;
214214 }
215215 ) ;
220220 return str . replace ( reEscapedChars ,
221221 function ( substring , p1 , p2 ) {
222222 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 :
225225 p1 ;
226226 }
227227 ) ;
Original file line number Diff line number Diff line change 536536 // unescaped " or '
537537 return p2 ? '\\' + p2 :
538538 // 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 ) ) :
540540 // \' \"
541- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
541+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
542542 // \g \h \. \# etc
543543 p1 ;
544544 }
554554 // unescaped " or '
555555 return p2 ? p2 :
556556 // 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 ) ) :
558558 // \' \"
559- / ^ [ \\ \x22 \x27 ] / . test ( p1 ) ? substring :
559+ ( / ^ [ \\ \x22 \x27 ] / ) . test ( p1 ) ? substring :
560560 // \g \h \. \# etc
561561 p1 ;
562562 }
You can’t perform that action at this time.
0 commit comments