isUserName static method

bool isUserName(
  1. String input, {
  2. String regex = RegexConstants.REGEX_USERNAME,
})

Return whether input matches regex of username. 返回输入是否匹配用户名的正则表达式。

Implementation

static bool isUserName(String input,
    {String regex = RegexConstants.REGEX_USERNAME}) {
  return matches(regex, input);
}