rails/journey — Issue #7: Route params don't seem to allow periods in values
Author: rmm5t
Created: 2011-12-21 02:30:06+00:00
State: open

I've only given this a very brief look, but after upgrading to Rails 3.2.0.rc1, one of our custom routes failed to match certain paths that we expected them to match. It seems that when a route parameter's value contains periods, the match no longer succeeds.

I haven't spent any time grokking the journey codebase yet; however here's a test that I got to fail, but that I would have expected to pass.

```ruby
# in test/nfa/test_simulator.rb
def test_simulate_periods
sim = simulator_for ['/whois/:domain']
assert_match sim, '/whois/example'
assert_match sim, '/whois/example.com'
assert_match sim, '/whois/www.example.com'
refute_match sim, '/whois/'
end
```