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

C#: Incorrect result of StringExtensions.Match #90673

Closed
zaevi opened this issue Apr 14, 2024 · 0 comments · Fixed by #90678
Closed

C#: Incorrect result of StringExtensions.Match #90673

zaevi opened this issue Apr 14, 2024 · 0 comments · Fixed by #90678

Comments

@zaevi
Copy link
Contributor

zaevi commented Apr 14, 2024

Tested versions

4.x

System information

Win11

Issue description

Some matching is incorrect:

Debug.Assert("MyFile.json".Match("*.json") is true);

Debug.Assert("myfile.json".Match("MyFile.*") is false);

Debug.Assert("myfile.json".Match("*.cs") is false); // <- fail

Debug.Assert("myfile.json".Match("MyFile.json") is false);

Steps to reproduce

N/A

Minimal reproduction project (MRP)

N/A

@zaevi zaevi changed the title C#: Incorrect result of string.Match C#: Incorrect result of StringExtensions.Match Apr 14, 2024
@raulsntos raulsntos added this to the 4.3 milestone Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants