lib/parse.js
/**
   * Replacer for `unescapeRegex` that unescapes escape sequences
   * @returns {string} Unescaped character
   * @throws {@see SyntaxError} on invalid escape sequence
   */
Replacer for `unescapeRegex` that unescapes escape sequences
@returns {string} Unescaped character
@throws  SyntaxError on invalid escape sequence
Replacer for ` unescapeRegex ` that unescapes escape sequences @returns { string } Unescaped character @throws SyntaxError on invalid escape sequence
function unescapeReplacer(_, hex1, hex2, char) {
    var hex = hex1 || hex2;
    if (hex) {
      return _String.fromCharCode(_parseInt(hex, 16));
    }
    if (char === 'u' || char === 'x') {
      throw error('incomplete hex escape');
    }
    if (hasOwnProperty(unescapeChars, char)) {
      return unescapeChars[char];
    }
    return char;
  }
function unescapeReplacer ( _ , hex1 , hex2 , char ) { var hex = hex1 || hex2 ; if ( hex ) { return _String . fromCharCode ( _parseInt ( hex , 16 ) ) ; } if ( char === 'u' || char === 'x' ) { throw error ( 'incomplete hex escape' ) ; } if ( hasOwnProperty ( unescapeChars , char ) ) { return unescapeChars [ char ] ; } return char ; }
Replacer for `unescapeRegex` that unescapes escape sequences
 @returns {string} Unescaped character
 @throws {@see SyntaxError} on invalid escape sequence
Replacer for ` unescapeRegex ` that unescapes escape sequences @returns { string } Unescaped character @throws { @see SyntaxError } on invalid escape sequence