lib/rules/no-regex-spaces.js
function checkLiteral(node) {
            const token = sourceCode.getFirstToken(node),
                nodeType = token.type,
                nodeValue = token.value;

            if (nodeType === "RegularExpression") {
                checkRegex(node, nodeValue, token.range[0]);
            }
        }
function checkLiteral(node) {
            const token = sourceCode.getFirstToken(node),
                nodeType = token.type,
                nodeValue = token.value;

            if (nodeType === "RegularExpression") {
                checkRegex(node, nodeValue, token.range[0]);
            }
        }
function checkLiteral ( node ) { const token = sourceCode . getFirstToken ( node ) , nodeType = token . type , nodeValue = token . value ; if ( nodeType === "RegularExpression" ) { checkRegex ( node , nodeValue , token . range [ 0 ] ) ; } }
Validate regular expression literals
@param {ASTNode} node node to validate
@returns {void}
@private
Validate regular expression literals