Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
kjb085 committed Jun 18, 2018
1 parent 48c82bb commit 677b7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_helper.js
Expand Up @@ -145,7 +145,7 @@ module.exports = NodeHelper.create({

replacements.forEach((modifier) => {
let caseSensitive = typeof modifier.caseSensitive !== 'undefined' ? modifier.caseSensitive : true,
caseFlag = caseSensitive === ? '' : 'i',
caseFlag = caseSensitive ? '' : 'i',
search = new RegExp(modifier.toReplace, 'g' + caseFlag),
replacement = modifier.replacement;

Expand Down

0 comments on commit 677b7a2

Please sign in to comment.