fix(script): add option flags, fix missing script options in help

This commit is contained in:
Skylot
2024-03-18 20:07:41 +00:00
parent 1290ef63a2
commit bff00d101f
6 changed files with 31 additions and 20 deletions
@@ -1,3 +1,5 @@
import jadx.api.plugins.options.OptionFlag.PER_PROJECT
/**
* Custom regexp deobfuscator
*/
@@ -7,10 +9,10 @@ jadx.args.isDeobfuscationOn = false
jadx.args.renameFlags = emptySet()
val regexOpt = jadx.options.registerString(
"regex",
"Apply rename for names matches regex",
name = "regex",
desc = "Apply rename for names matches regex",
defaultValue = "[Oo0]+",
)
).flags(PER_PROJECT)
val regex = regexOpt.value.toRegex()
var n = 0