Skip to content

MAJOR BUG: Numbers are Matched as Characters #1252

Closed as not planned
Closed as not planned
@nokernelspace

Description

@nokernelspace

What version of regex are you using?

1.11.1

Describe the bug at a high level.

[A-Za-z]* matches with numbers [0-9]

What are the steps to reproduce the behavior?

    let ret = Regex::new(r"([A-Za-z]*)").unwrap().is_match("1");
    println!("{:?}", ret);

What is the actual behavior?

true

What is the expected behavior?

false

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