getPattern method
Returns a compiled RegExp pattern
, using $words
in dialect.
Implementation
RegExp getPattern(String pattern) {
var regexp = _patterns[pattern];
if (regexp != null) return regexp;
regexp = _compileWordPattern(_dialect, pattern);
_patterns[pattern] = regexp;
return regexp;
}