Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern doesn't match correctly. #18

Closed
pufmat opened this issue Mar 10, 2024 · 2 comments
Closed

Pattern doesn't match correctly. #18

pufmat opened this issue Mar 10, 2024 · 2 comments
Assignees

Comments

@pufmat
Copy link
Contributor

pufmat commented Mar 10, 2024

Describe the bug
Pattern *113 should match 1113.

To Reproduce
Steps to reproduce the behavior:

assert!(WildMatch::new("*113").matches("1113"));

Expected behavior
Assertion should pass.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Fedora Linux 39 (Workstation Edition)

Additional context
rustc 1.75.0 (82e1608df 2023-12-21)

@becheran
Copy link
Owner

Fixed with release 2.3.1

@pufmat
Copy link
Contributor Author

pufmat commented Mar 11, 2024

I have just found that this also doesn't pass:

assert!(WildMatch::new("*121").matches("12121"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants