dist/index.js
/**
 * Checks whether the next nonignorable token after the specified position is a quantifier.
 *
 * @private
 * @param {String} pattern Pattern to search within.
 * @param {Number} pos Index in `pattern` to search at.
 * @param {String} flags Flags used by the pattern.
 * @returns {Boolean} Whether the next nonignorable token is a quantifier.
 */
Checks whether the next nonignorable token after the specified position is a quantifier.
@private
@param {String} pattern Pattern to search within.
@param {Number} pos Index in `pattern` to search at.
@param {String} flags Flags used by the pattern.
@returns {Boolean} Whether the next nonignorable token is a quantifier.
Checks whether the next nonignorable token after the specified position is a quantifier . @private @param { String } pattern Pattern to search within . @param { Number } pos Index in ` pattern ` to search at . @param { String } flags Flags used by the pattern . @returns { Boolean } Whether the next nonignorable token is a quantifier .
function isQuantifierNext(pattern, pos, flags) {
  var inlineCommentPattern = '\\(\\?#[^)]*\\)';
  var lineCommentPattern = '#[^#\\n]*';
  var quantifierPattern = '[?*+]|{\\d+(?:,\\d*)?}';
  return nativ.test.call((0, _includes["default"])(flags).call(flags, 'x') ? 
  /^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/ : 
  /^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/, (0, _slice["default"])(pattern).call(pattern, pos));
}
function isQuantifierNext ( pattern , pos , flags ) { var inlineCommentPattern = '\\(\\?#[^)]*\\)' ; var lineCommentPattern = '#[^#\\n]*' ; var quantifierPattern = '[?*+]|{\\d+(?:,\\d*)?}' ; return nativ . test . call ( ( 0 , _includes [ "default" ] ) ( flags ) . call ( flags , 'x' ) ? / ^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?}) / : / ^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?}) / , ( 0 , _slice [ "default" ] ) ( pattern ) . call ( pattern , pos ) ) ; }
Checks whether the next nonignorable token after the specified position is a quantifier.
Checks whether the next nonignorable token after the specified position is a quantifier .
// Ignore any leading whitespace, line comments, and inline comments // Ignore any leading inline comments