Skip to content

regexp: nested x{n} makes isOnePass take too long #7608

@rui314

Description

@rui314
What does 'go version' print?
go version devel +82edfcdee1bc Thu Mar 06 13:15:09 2014 +1100 linux/amd64

What steps reproduce the problem?
If you run `^(?:x{1,1000}){1,1000}$` on "xxxxxxxx ...(5000 times)... y",
FindString does not return. If the repetition is short, it will return immediately.
http://play.golang.org/p/uh55Y8ajc6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions