function checkRegex(node,value,valueStart){var multipleSpacesRegex=/( {2,})+?/,regexResults=multipleSpacesRegex.exec(value);if(regexResults!==null){var count=regexResults[0].length;context.report({node:node,message:"Spaces are hard to count. Use {{{count}}}.",data:{count:count},fix:function fix(fixer){return fixer.replaceTextRange([valueStart+regexResults.index,valueStart+regexResults.index+count]," {"+count+"}");}});/*
                 * TODO: (platinumazure) Fix message to use rule message
                 * substitution when api.report is fixed in lib/eslint.js.
                 */}}
Validate regular expressions
@param {ASTNode} node node to validate
@param {string} value regular expression to validate
@param {number} valueStart The start location of the regex/string literal. It will always be the case that
         `sourceCode.getText().slice(valueStart, valueStart + value.length) === value`
@returns {void}
@private