Skip to content

Commit a74ddc1

Browse files
committed
*NO CI* use const
1 parent fa89404 commit a74ddc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/expression-parser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const unexpectedCharInExpression = 'Unexpected character %1.'
1010
* @param {string} str - Raw string
1111
* @returns {string} Escaped string.
1212
*/
13-
var escapeStr = str => str.replace(/(?=[-[\](){^*+?.$|\\])/g, '\\')
13+
const escapeStr = str => str.replace(/(?=[-[\](){^*+?.$|\\])/g, '\\')
1414

1515
const $_ES6_BQ = '`'
1616

0 commit comments

Comments
 (0)