Files
codeql/python/ql/examples/snippets/raw_string.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

14 lines
234 B
Plaintext

/**
* @id py/examples/raw-string
* @name Raw string literals
* @description Finds string literals with an 'r' prefix
* @tags string
* raw
*/
import python
from StringLiteral s
where s.getPrefix().matches("%r%")
select s