We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Describe the bug I have a simple regex in my code, all mutations are invalid as the constructor is removed in the result.
public bool TestInput(string input) { var regex = new Regex(@"^[0-9]{3,}$"); return regex.IsMatch(input); }
Mutations
There are multiple, all causing the same compilation error, but 3 examples:
Regex anchor removal mutation:
- var regex = new Regex(@"^[0-9]{3,}$"); + var regex = "^[0-9]{3,}"
Regex greedy quantifier quantity mutation:
- var regex = new Regex(@"^[0-9]{3,}$"); + var regex = "^[0-9]{4,}"
Regex character class range modification:
- var regex = new Regex(@"^[0-9]{3,}$"); + var regex = "^[0-8]{3,}$"
Tested both with var and explicit type.
var
Expected behavior No compilation errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I have a simple regex in my code, all mutations are invalid as the constructor is removed in the result.
Mutations
There are multiple, all causing the same compilation error, but 3 examples:
Regex anchor removal mutation:
Regex greedy quantifier quantity mutation:
Regex character class range modification:
Tested both with
var
and explicit type.Expected behavior
No compilation errors.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: