Files
codeql/python/ql/examples/snippets/singlequotestring.ql
Taus 1c68c987b0 Python: Change all remaining occurrences of StrConst
Done using
```
git grep StrConst | xargs sed -i 's/StrConst/StringLiteral/g'
```
2024-04-22 12:00:09 +00:00

15 lines
277 B
Plaintext

/**
* @id py/examples/singlequotestring
* @name Single-quoted string literals
* @description Finds string literals using single quotes
* @tags string
* single quote
* quote
*/
import python
from StringLiteral s
where s.getPrefix().charAt(_) = "'"
select s