code: function(matches, index, tokens, regexValue) {
        var i = tokens.length;
  
        while (--i >= 0) {
          var token = tokens[i];
          var type = token.type;
  
          if (type === _Comment ||
              type === _WhiteSpace ||
              type === _LineTerminator) {
            continue;
          }
  
          var value = token.value;
          if (type === _Punctuator) {
            if (value === ')') {
              if (this.isValidRegExpPrefix(tokens, i + 1)) {
                break;
              }
            } else if (regexPrefixRe.test(value)) {
              break;
            }
          } else if ((type === _Keyword && regexPrefixRe.test(value)) ||
                     (type === _Template && value.slice(-2) === '${')) {
            break;
          }
  
          var parts = regexValue.match(tokenizeNotRegExpRe);
          splice.apply(matches, [index, 1].concat(parts));
          return true;
        }
        return false;
      }
docs: Fix Regular Expression missing matches e.g. `var g=1,a=2/3/g;`