app-routes 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/app-routes.rb +1 -1
  2. metadata +1 -1
@@ -54,7 +54,7 @@ class AppRoutes
54
54
  private
55
55
 
56
56
  def string_get(raw_s, &block)
57
- s = "^%s$" % raw_s.gsub(/\:\w+/,'(\w+)').gsub(/\/\*/,'(.*)')
57
+ s = "^%s$" % raw_s.gsub(/\:[\w-]+/,'([\w-]+)').gsub(/\/\*/,'(.*)')
58
58
  @route[Regexp.new s] = {s: raw_s, block: block}
59
59
  end
60
60
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors: []
7
7