Project

General

Profile

Actions

Bug #20095

closed

Regex lookahead behaving strangely in 3.3.0

Added by sisyphus_cg (Sisyphus CG) 12 months ago. Updated 9 months 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 master - Bug #20083: String#match? behaving inconsistently with Ruby 3.3.0ClosedActions
Actions #2

Updated by naruse (Yui NARUSE) 12 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
Actions #3

Updated by naruse (Yui NARUSE) 12 months ago

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

Updated by make_now_just (Hiroya Fujinami) 11 months ago

It is the exact same as #20207.

Updated by duerst (Martin Dürst) 11 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) 9 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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0