1
0
Fork 0
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:
ignacio-chiazzo 2021-10-13 17:21:32 -04:00
parent 4df32bc139
commit 99986cccc4
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -91,7 +91,6 @@ module ActionDispatch
# as requirements.
def requirements
@defaults.merge(path.requirements).delete_if { |_, v|
/.+?/ == v ||
/.+?/m == v
}
end