Skip to content

Commit

Permalink
Chore: no-regex-spaces uses internal rule message format (fixes #7052) (
Browse files Browse the repository at this point in the history
  • Loading branch information
platinumazure authored and vitorbal committed Sep 3, 2016
1 parent 22c7e09 commit fa760f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rules/no-regex-spaces.js
Expand Up @@ -37,7 +37,10 @@ module.exports = {
if (regexResults !== null) {
context.report({
node,
message: `Spaces are hard to count. Use {${regexResults[0].length}}.`
message: "Spaces are hard to count. Use {{{count}}}.",
data: {
count: regexResults[0].length
}
});

/*
Expand Down

0 comments on commit fa760f9

Please sign in to comment.