_includes/bits/2019/07/30/more-robust-javascript-error-reporting/error-reporting.js
/** Gets the URL-encoding of a given string.
   * https://github.com/jerrybendy/url-search-params-polyfill/blob/v7.0.0/index.js#L117
   * @private
   */
Gets the URL-encoding of a given string.
Gets the URL - encoding of a given string .
function urlEncode(str) {
    var replace = {
      '!': '%21',
      "'": '%27',
      '(': '%28',
      ')': '%29',
      '~': '%7E',
      '%20': '+',
      '%00': '\x00'
    };
    return encodeURIComponent(str)
      .replace(/[!'()~]|%20|%00/g, function(match) {
        return replace[match];
      });
  }
function urlEncode ( str ) { var replace = { '!' : '%21' , "'" : '%27' , '(' : '%28' , ')' : '%29' , '~' : '%7E' , '%20' : '+' , '%00' : '\x00' } ; return encodeURIComponent ( str ) . replace ( / [!'()~]|%20|%00 / g , function ( match ) { return replace [ match ] ; } ) ; }
Gets the URL-encoding of a given string.
Gets the URL - encoding of a given string .