mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[Temporal] Test railties using multiline Regex
This commit is contained in:
parent
4df32bc139
commit
99986cccc4
2 changed files with 1 additions and 2 deletions
|
@ -166,7 +166,7 @@ module ActionDispatch
|
|||
super(left)
|
||||
|
||||
# By default wildcard routes are non-greedy and must match something.
|
||||
@regexp = /.+?/
|
||||
@regexp = /.+?/m
|
||||
end
|
||||
|
||||
def star?; true; end
|
||||
|
|
|
@ -91,7 +91,6 @@ module ActionDispatch
|
|||
# as requirements.
|
||||
def requirements
|
||||
@defaults.merge(path.requirements).delete_if { |_, v|
|
||||
/.+?/ == v ||
|
||||
/.+?/m == v
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue