release/rollbar-1.2.0.commonjs.js
function escapeCodeAsRegExpForMatchingInsideHTML(body) {
        return escapeRegExp(body).replace('<', '(?:<|&lt;)').replace('>', '(?:>|&gt;)').replace('&', '(?:&|&amp;)').replace('"', '(?:"|&quot;)').replace(/\s+/g, '\\s+');
    }
function escapeCodeAsRegExpForMatchingInsideHTML(body) {
        return escapeRegExp(body).replace('<', '(?:<|&lt;)').replace('>', '(?:>|&gt;)').replace('&', '(?:&|&amp;)').replace('"', '(?:"|&quot;)').replace(/\s+/g, '\\s+');
    }
function escapeCodeAsRegExpForMatchingInsideHTML ( body ) { return escapeRegExp ( body ) . replace ( '<' , '(?:<|&lt;)' ) . replace ( '>' , '(?:>|&gt;)' ) . replace ( '&' , '(?:&|&amp;)' ) . replace ( '"' , '(?:"|&quot;)' ) . replace ( / \s+ / g , '\\s+' ) ; }
Escapes special characters in a string to be used inside a regular
expression as a string literal. Also ensures that HTML entities will
be matched the same as their literal friends.
@param {string} body The string.
@return {string} The escaped string.
Escapes special characters in a string to be used inside a regular expression as a string literal . Also ensures that HTML entities will be matched the same as their literal friends .