parser/lex.js
function clean(source) {
    if (!source) return BLANK;
    if (source.charCodeAt(0) === BOM_CODE) source = source.slice(1);
    source = source.replace(CR_REGEXP, BLANK).replace(TRAILING_WHITESPACE_REGEXP, BLANK);
    return source;
}
function clean(source) {
    if (!source) return BLANK;
    if (source.charCodeAt(0) === BOM_CODE) source = source.slice(1);
    source = source.replace(CR_REGEXP, BLANK).replace(TRAILING_WHITESPACE_REGEXP, BLANK);
    return source;
}
function clean ( source ) { if ( ! source ) return BLANK ; if ( source . charCodeAt ( 0 ) === BOM_CODE ) source = source . slice ( 1 ) ; source = source . replace ( CR_REGEXP , BLANK ) . replace ( TRAILING_WHITESPACE_REGEXP , BLANK ) ; return source ; }
Remove any unwanted characters from the raw source code string
Remove any unwanted characters from the raw source code string