File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 38
38
//strip out the additional data, convert string to JSON.
39
39
var leftParen = pMatch . indexOf ( '(' ) ;
40
40
var rightParen = pMatch . indexOf ( ')' ) ;
41
- var paramString = '{' + pMatch . substring ( leftParen + 1 , rightParen ) + '}' ;
41
+ var paramString = '{' + pMatch . substring ( leftParen + 1 , rightParen ) + '}' ;
42
42
//if param keys are wrapped in single quotes, replace with double quotes.
43
- var paramStringWellFormed = paramString . replace ( / ( ' ) ( [ ^ ' \s ] + ) ( ' ) ( \s * \: ) / gm, '"$2"$4' ) ;
43
+ var paramStringWellFormed = paramString . replace ( / ( ' ) ( [ ^ ' ] + ) ( ' ) ( \s * \: ) / gm, '"$2"$4' ) ;
44
44
//if params keys are not wrapped in any quotes, wrap in double quotes.
45
45
var paramStringWellFormed = paramStringWellFormed . replace ( / ( [ \{ | , ] \s * ) ( [ ^ \: \s ] + ) ( \s * \: ) / gm, '$1"$2"$3' ) ;
46
46
//if param values are wrapped in single quotes, replace with double quotes.
You can’t perform that action at this time.
0 commit comments