Project

General

Profile

Actions

Bug #20095

closed

Regex lookahead behaving strangely in 3.3.0

Bug #20095: Regex lookahead behaving strangely in 3.3.0

Added by sisyphus_cg (Sisyphus CG) almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:115924]

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.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0ClosedActions

Updated by naruse (Yui NARUSE) almost 2 years ago Actions #2

  • 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) almost 2 years ago Actions #3

  • Is duplicate of Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0 added

Updated by make_now_just (Hiroya Fujinami) over 1 year ago Actions #4 [ruby-core:116477]

It is the exact same as #20207.

Updated by duerst (Martin Dürst) over 1 year ago Actions #5 [ruby-core:116487]

  • Status changed from Open to Closed

If the duplicate has already be resolved, then let's close this, too.

Updated by naruse (Yui NARUSE) over 1 year ago Actions #6 [ruby-core:117271]

  • 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
Actions

Also available in: PDF Atom

Like0
Like0Like0Like0Like0Like0Like0