app-routes 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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