Files
codeql/python/ql/test/library-tests/regex/Alternation.ql
Taus Brock-Nannestad f07a7bf8cf Python: Autoformat everything using qlformat.
Will need subsequent PRs fixing up test failures (due to deprecated
methods moving around), but other than that everything should be
straight-forward.
2020-07-07 15:43:52 +02:00

8 lines
300 B
Plaintext

import python
import semmle.python.regex
from Regex r, int start, int end, int part_start, int part_end
where r.alternationOption(start, end, part_start, part_end)
select r.getText(), start, end, r.getText().substring(start, end), part_start, part_end,
r.getText().substring(part_start, part_end)