MCPcopy Create free account
hub / github.com/sensepost/objection / _is_string_pattern

Function _is_string_pattern

objection/commands/memory.py:39–48  ·  view source on GitHub ↗

Checks if --string-pattern is in the list of tokens received form the command line. :param args: :return:

(args: list)

Source from the content-addressed store, hash-verified

37
38
39def _is_string_pattern(args: list) -> bool:
40 """
41 Checks if --string-pattern is in the list of tokens received form the
42 command line.
43
44 :param args:
45 :return:
46 """
47
48 return len(args) > 0 and '--string-pattern' in args
49
50
51def _is_string_replace(args: list) -> bool:

Callers 1

replace_patternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…