Skip to content

Commit e4ab056

Browse files
committed
Fix lint: use unescaped braces in regex (unicorn/better-regex)
1 parent 954f2eb commit e4ab056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/template-no-mut-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
// don't end up with `{{{{...}}}}` in the error message.
3737
const setterAlternative =
3838
typeof rawSetterAlternative === 'string'
39-
? rawSetterAlternative.replace(/^\{\{([\S\s]*)\}\}$/, '$1').trim()
39+
? rawSetterAlternative.replace(/^{{([\S\s]*)}}$/, '$1').trim()
4040
: rawSetterAlternative;
4141
const message = setterAlternative
4242
? `Do not use the (mut) helper. Consider using a JS action or {{${setterAlternative}}} instead.`

0 commit comments

Comments
 (0)