rack-mount 0.5.0 → 0.5.1

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/rack/mount/utils.rb +1 -1
  2. metadata +2 -2
@@ -95,7 +95,7 @@ module Rack::Mount
95
95
  # regexp_anchored?(/^foo/) # => false
96
96
  # regexp_anchored?(/foo$/) # => false
97
97
  def regexp_anchored?(regexp)
98
- regexp.source =~ /\A(\\A|\^).*(\\Z|\$)\Z/ ? true : false
98
+ regexp.source =~ /\A(\\A|\^).*(\\Z|\$)\Z/m ? true : false
99
99
  end
100
100
  module_function :regexp_anchored?
101
101
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-09 00:00:00 -06:00
12
+ date: 2010-02-15 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency