File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ function dotSplit (str) {
59
59
return str . replace ( / \1/ g, '\u0002LITERAL\\1LITERAL\u0002' )
60
60
. replace ( / \\ \. / g, '\u0001' )
61
61
. split ( / \. / ) . map ( function ( part ) {
62
- return part . replace ( / \1/ g, '\\.' )
62
+ return part . replace ( / \1/ g, '\\.' )
63
63
. replace ( / \2L I T E R A L \\ 1 L I T E R A L \2/ g, '\u0001' )
64
- } )
64
+ } )
65
65
}
66
66
67
67
function decode ( str ) {
@@ -149,9 +149,9 @@ function safe (val) {
149
149
val . match ( / ^ \[ / ) ||
150
150
( val . length > 1 &&
151
151
isQuoted ( val ) ) ||
152
- val !== val . trim ( ) ) ?
153
- JSON . stringify ( val ) :
154
- val . replace ( / ; / g, '\\;' ) . replace ( / # / g, '\\#' )
152
+ val !== val . trim ( ) )
153
+ ? JSON . stringify ( val )
154
+ : val . replace ( / ; / g, '\\;' ) . replace ( / # / g, '\\#' )
155
155
}
156
156
157
157
function unsafe ( val , doUnesc ) {
Original file line number Diff line number Diff line change 17
17
},
18
18
"dependencies" : {},
19
19
"devDependencies" : {
20
- "standard" : " ^4 .0.1 " ,
20
+ "standard" : " ^10 .0.3 " ,
21
21
"tap" : " ^10.7.3"
22
22
},
23
23
"license" : " ISC" ,
You can’t perform that action at this time.
0 commit comments