■ ■ ■ ■ ■ ■
scan_commons_text_calls_jar/python/scan_commons_text_calls_jar.py
| skipped 73 lines |
74 | 74 | | classes = [name for name in jarfile.namelist() if name.endswith(".class")] |
75 | 75 | | for c in classes: |
76 | 76 | | classfile_content = jarfile.read(c) |
77 | | - | if match_string in classfile_content: |
| 77 | + | if re.search(match_string, classfile_content): |
78 | 78 | | return True |
79 | 79 | | return False |
80 | 80 | | except (IOError, BadZipFile): |
| skipped 148 lines |
229 | 229 | | # if caller class matches this regex, it will *not* be displayed |
230 | 230 | | caller_block=".*org/apache/commons/text", |
231 | 231 | | # checking for existence of this string in classes unless no_quickmatch |
232 | | - | quickmatch_string="StringSubstitutor", |
| 232 | + | quickmatch_string="(StringLookup|StringSubstitutor)", |
233 | 233 | | # not set - looking for calls to specified methods, set - looking for existence of classes |
234 | 234 | | class_existence=False, |
235 | 235 | | # when set, do not do quick match |
| skipped 38 lines |