Idea: allow postfixing of func names (#1435)

Now that @sozud has added function similarity, I wonder if it's worth
including prefix matches in the results of function_finder. This would
let us name a scratch ex: `EntityWeaponAttack_w_053` and have it still
show up in functions.md. Thoughts?
This commit is contained in:
Josh Lory 2024-07-26 04:59:12 -07:00 committed by GitHub
parent 1e0458ff10
commit ef4bd2feef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,8 +44,7 @@ def find_scratches(name, platform, local_asm=None, use_local=False):
for result in scratches["results"]:
if not "name" in result:
continue
# seems to give approximate matches, skip these
if result["name"] != name:
if not result["name"].startswith(name):
continue
if result["platform"] != platform:
continue