We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 For Python, the "..." pattern does not match empty f-strings (f""). This seems to be an inconsistency.
"..."
f""
To Reproduce https://semgrep.dev/playground/s/yyRjO
rules: - id: python-fstring languages: - python severity: ERROR patterns: - pattern: $X = "..."
a = "asd" b = "" c = f"asd" d = f"" e = f"{2+2}"
The a, b, and c lines are matched, d and e lines are not matched.
Expected behavior I would expect the "..." pattern to match empty f-strings, because the pattern matches not-empty, constant f-strings already.
What is the priority of the bug to you?
Use case The bug makes us to write additional pattern-not cases, so it is a minor inconvenience. See trailofbits/semgrep-rules#39 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
For Python, the
"..."
pattern does not match empty f-strings (f""
). This seems to be an inconsistency.To Reproduce
https://semgrep.dev/playground/s/yyRjO
The a, b, and c lines are matched, d and e lines are not matched.
Expected behavior
I would expect the
"..."
pattern to match empty f-strings, because the pattern matches not-empty, constant f-strings already.What is the priority of the bug to you?
Use case
The bug makes us to write additional pattern-not cases, so it is a minor inconvenience. See trailofbits/semgrep-rules#39 (comment)
The text was updated successfully, but these errors were encountered: