New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the whole string instead of a single line for template match #431
Use the whole string instead of a single line for template match #431
Conversation
a2f32c7
to
22af13f
Compare
Marking as ready for review because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a good change - supporting multi line strings was definitely not intentional
spec/addressable/template_spec.rb
Dismissed
@@ -77,6 +77,15 @@ | |||
end | |||
end | |||
|
|||
describe "#to_regexp" do | |||
it "does not match the first line of multiline strings" do | |||
uri = "https://www.example.com/bar" |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
here
This string, which is used as a regular expression
Multiline strings shouldn't pass the validation if a single line matches.