API: better support A/W functions

This commit is contained in:
Willi Ballenthin
2022-04-05 14:54:15 -06:00
parent 58acc9c2b7
commit e9bb56f3cf

View File

@@ -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: