bool hasMatch(String key) { for (var range in this) { if (range.regex.hasMatch(key)) { return true; } } return false; }