diff options
author | Aaron Patterson <tenderlove@github.com> | 2019-02-05 17:43:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 17:43:14 -0800 |
commit | 3127f5783ef3f07a05476b4a036d069d96def603 (patch) | |
tree | cb19146d29f87f49157b891f2d89460f53d5ca77 /actionpack/lib/action_dispatch | |
parent | 9483cdee0a3ed9c686e338f079b0e369597b1211 (diff) | |
parent | 1315582b374f33becfb325bf339674a0a5e6d141 (diff) | |
download | rails-3127f5783ef3f07a05476b4a036d069d96def603.tar.gz rails-3127f5783ef3f07a05476b4a036d069d96def603.tar.bz2 rails-3127f5783ef3f07a05476b4a036d069d96def603.zip |
Merge pull request #35162 from silppuri/fix-incorrectly-matching-unachored-paths
Fix incorrectly matching unanchored paths
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/path/pattern.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/path/pattern.rb b/actionpack/lib/action_dispatch/journey/path/pattern.rb index 537f479ee5..697f5b9d8b 100644 --- a/actionpack/lib/action_dispatch/journey/path/pattern.rb +++ b/actionpack/lib/action_dispatch/journey/path/pattern.rb @@ -119,7 +119,7 @@ module ActionDispatch class UnanchoredRegexp < AnchoredRegexp # :nodoc: def accept(node) - %r{\A#{visit node}} + %r{\A#{visit node}(?:\b|\Z)} end end |