mirror of
https://github.com/mandiant/capa.git
synced 2026-02-04 11:07:53 -08:00
API: better support A/W functions
This commit is contained in:
@@ -29,8 +29,7 @@ def is_aw_function(symbol: str) -> bool:
|
||||
if symbol[-1] not in ("A", "W"):
|
||||
return False
|
||||
|
||||
# second to last character should be lowercase letter
|
||||
return "a" <= symbol[-2] <= "z" or "0" <= symbol[-2] <= "9"
|
||||
return True
|
||||
|
||||
|
||||
def is_ordinal(symbol: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user