Matches keeps an internal reference to spec object
matches: Linting + handle edge cases
Merge pull request #1730 from megawac/matches

Matches keeps an internal reference to spec object