lib/rules/max-len.js
function stripTrailingComment(line, comment) {

            // loc.column is zero-indexed
            return line.slice(0, comment.loc.start.column).replace(/\s+$/u, "");
        }
function stripTrailingComment(line, comment) {

            // loc.column is zero-indexed
            return line.slice(0, comment.loc.start.column).replace(/\s+$/u, "");
        }
function stripTrailingComment ( line , comment ) { // loc.column is zero-indexed return line . slice ( 0 , comment . loc . start . column ) . replace ( / \s+$ / u , "" ) ; }
Gets the line after the comment and any remaining trailing whitespace is
stripped.
@param {string} line The source line with a trailing comment
@param {ASTNode} comment The comment to remove
@returns {string} Line without comment and trailing whitepace
Gets the line after the comment and any remaining trailing whitespace is stripped .