match abstract method

bool match(
  1. String pattern,
  2. String path
)

Whether the whole of path matches pattern.

matcher.match('com/t?st.jsp', 'com/test.jsp'); // true
matcher.match('com/**/test.jsp', 'com/a/b/test.jsp'); // true

Implementation

bool match(String pattern, String path);