isShortCode function

bool isShortCode(
  1. String code
)

Whether code could be a link's short code: base62, at most 64 characters, not reserved.

Implementation

bool isShortCode(String code) =>
    _shortCodePattern.hasMatch(code) && !isReservedShortCode(code);