acceptLowAlphaNumeric2to8 method

bool acceptLowAlphaNumeric2to8()

Advances and returns true if current subtag is alphanumeric, with length ranging from 2 to 8.

Implementation

bool acceptLowAlphaNumeric2to8() {
  if (atEnd()) return false;
  if (!_alphaNumeric1to8RegExp.hasMatch(_current) || _current.length < 2) {
    return false;
  }
  advance();
  return true;
}