File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export default class Tokenizer {
188
188
return this . getPlaceholderTokenWithKey ( {
189
189
input,
190
190
regex : this . STRING_NAMED_PLACEHOLDER_REGEX ,
191
- parseKey : ( v ) => this . getEscapedPlaceholderKey ( { key : v . slice ( 2 , - 1 ) , stringChar : v . slice ( - 1 ) } )
191
+ parseKey : ( v ) => this . getEscapedPlaceholderKey ( { key : v . slice ( 2 , - 1 ) , quoteChar : v . slice ( - 1 ) } )
192
192
} ) ;
193
193
}
194
194
@@ -208,8 +208,8 @@ export default class Tokenizer {
208
208
return token ;
209
209
}
210
210
211
- getEscapedPlaceholderKey ( { key, stringChar } ) {
212
- return key . replace ( new RegExp ( _ . escapeRegExp ( "\\" ) + stringChar , "g" ) , stringChar ) ;
211
+ getEscapedPlaceholderKey ( { key, quoteChar } ) {
212
+ return key . replace ( new RegExp ( _ . escapeRegExp ( "\\" ) + quoteChar , "g" ) , quoteChar ) ;
213
213
}
214
214
215
215
// Decimal, binary, or hex numbers
You can’t perform that action at this time.
0 commit comments