lib/sinatra/route_parser.rb in sinatra-named-routes-0.1.1 vs lib/sinatra/route_parser.rb in sinatra-named-routes-0.1.2

- old
+ new

@@ -126,10 +126,10 @@ nil end end def parse_path - if @input.scan(/\w+/) + if @input.scan(/[\w\-]+/) { :token => :path, :value => @input.matched } else \ No newline at end of file