Skip to content

RegexSet misbehave with unicode #353

Closed
@constituent

Description

@constituent

Tested with regex 0.2.1

println!("{:?}", RegexSet::new(&["a", "b",]).unwrap().is_match("b"));
println!("{:?}", RegexSet::new(&["b", "a",]).unwrap().is_match("b"));
println!("{:?}", RegexSet::new(&["a", "β",]).unwrap().is_match("β"));
println!("{:?}", RegexSet::new(&["β", "a",]).unwrap().is_match("β"));

gives

true
true
false
true

The third should also be true. The only difference of b or β leads to different results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions