Closed graydoubt closed 5 months ago
Wow this looks very useful! I'm sorry you had to try figuring out my code! At some point, I definitely want to refactor the code into smaller files and make it more cohesive.
Thank you very much!
Thanks for accepting. Apologies for the faux pas of just yoloing a PR without an accompanying issue.
Oh all good, I don't mind at all!
This change adds the ability to filter lines based on a regular expression during export:
During development, some of my scripts allow for debug output that I'm using for tracing the more complex interactions and logic flow:
Methods then have print statements that give away the original method name after obfuscation:
This is also useful for stripping assert()s that might give away details.
By specifying
var DEBUG: bool|if DEBUG:|assert\(
as regex, those lines will be stripped from the maimed code: