Bug #12256
closed
multiline regex parses '/' in a comment
Added by ag4ve (shawn wilson) about 8 years ago.
Updated about 8 years ago.
Description
line 41
line =~ /
foo # bar/baz
/x
Should not parse beyond a bare '#' or the limitation should be documented
Files
t.rb (2.33 KB)
t.rb |
|
ag4ve (shawn wilson), 04/07/2016 08:48 AM
|
|
- Description updated (diff)
- Status changed from Open to Closed
Applied in changeset r54510.
regexp.rdoc: terminators in comments [ci skip]
- Description updated (diff)
No way to know if it will have x
option at reading that '#'.
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED
- Backport changed from 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: WONTFIX, 2.2: DONE, 2.3: REQUIRED
ruby_2_2 r54697 merged revision(s) 54510.
- Backport changed from 2.1: WONTFIX, 2.2: DONE, 2.3: REQUIRED to 2.1: WONTFIX, 2.2: DONE, 2.3: DONE
ruby_2_3 r54709 merged revision(s) 54510.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0