Project

General

Profile

Bug #14103

Regexp absense operator has no chance to ^C

Added by shyouhei (Shyouhei Urabe) over 1 year ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-11-09 trunk 60720) [x86_64-darwin15]
[ruby-core:83750]

Description

Following script hangs, with no respond to ^C.

/(?<x> (?<! a ) a+ ){0}
 (?<y> (?~ \g<z> ) ){0}
 (?<z> (?<! a ) \k<x> (?! a ) ){0}
 \g<x> \g<y> \g<z>
/xo =~ (1..1024).map{|x| 'b' + 'a' * x }.join

Also available in: Atom PDF