Improve regex for finding existing routes
Merge pull request #1371 from kimroen/improve-route-check

Improve regex for finding existing routes