refactor Routing::Mapper
Merge pull request #8715 from goshakkk/refactor-mapper

Refactor Routing::Mapper#matches?