match method

bool match(
  1. String path
)

Tests if a path match.

Implementation

bool match(String path) {
  final preparedPath = _addTrailingSlash(Uri.parse(path).path);
  return _pathRegex.hasMatch(preparedPath);
}