Actions
Bug #20095
closedRegex lookahead behaving strangely in 3.3.0
Description
Multiple regex lookaheads seem to behave strangely in 3.3.0:
p "xxx" =~ /(?=.*x)x(?=banana)/ # 2
Clearly, the string xxx
does not contain banana
, so this regex should never match, but it does.
Updated by dentarg (Patrik Ragnarsson) 10 months ago
Updated by naruse (Yui NARUSE) 10 months ago
- Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED
Updated by naruse (Yui NARUSE) 10 months ago
- Is duplicate of Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0 added
Updated by make_now_just (Hiroya Fujinami) 9 months ago
It is the exact same as #20207.
Updated by duerst (Martin Dürst) 9 months ago
- Status changed from Open to Closed
If the duplicate has already be resolved, then let's close this, too.
Updated by naruse (Yui NARUSE) 8 months ago
- Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE
ruby_3_3 5f3dfa1c273c6fb9eae65ceca633b46f7e30f686.
Actions
Like0
Like0Like0Like0Like0Like0Like0