GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — codeql/python/ql/lib/semmle/python/regex.qll at codeql-cli/v2.19.1 · github/codeql Expand file tree/ Copy pathregex.qllMore file actions 16 lines (15 loc) · 695 Bytes / Copy pathregex.qllFile metadata and controls16 lines (15 loc) · 695 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import python // Need to import since frameworks can extend the abstract `RegExpInterpretation::Range` private import semmle.python.Frameworks private import regexp.internal.RegExpTracking as RegExpTracking private import semmle.python.Concepts as Concepts private import semmle.python.regexp.RegexTreeView private import semmle.python.dataflow.new.DataFlow import regexp.internal.ParseRegExp /** Gets a parsed regular expression term that is executed at `exec`. */ RegExpTerm getTermForExecution(Concepts::RegexExecution exec) { exists(DataFlow::Node source | source = RegExpTracking::regExpSource(exec.getRegex()) | result.getRegex() = source.asExpr() and result.isRootTerm() ) } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |