Skip to content

Matching fails if there are more than 10 OR's ( | symbol ) in the regex #191

@jonimake

Description

@jonimake

Not much else to say. The following piece of code will fail:
assert!(Regex::new(r"1|2|3|4|5|6|7|8|9|10|int").unwrap().is_match("int")); //fails

While this won't:
assert!(Regex::new(r"1|2|3|4|5|6|7|8|9|int").unwrap().is_match("int"));

Edit: this is with 0.1.58 and rust 1.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions