-
Notifications
You must be signed in to change notification settings - Fork 1
MATCH_GOTO
Cregrant edited this page Jun 11, 2023
·
2 revisions
Tries to find the specified text in the files and, if successful, jumps to the rule with the specified name.
- NAME: the name of the rule (optional)
- TARGET: the path to the text file to search. Supports Variables, Glob pattern and Static replacements
- MATCH: the text to be searched in the file
- REGEX:
true
if the text in theMATCH
field is a regular expression,false
otherwise - GOTO: the name of a rule from which the patch will continue to run
Replace all the letters f
with j
inside the res/layout/
folder only if the package name is com.blahblah
:
[MATCH_GOTO]
TARGET:
AndroidManifest.xml
MATCH:
<manifest.+package=\"com\.blahblah\"
REGEX:
true
GOTO:
run
[/MATCH_GOTO]
[GOTO]
GOTO:
end
[/GOTO]
[MATCH_REPLACE]
NAME:
run
TARGET:
res/layout/*
MATCH:
f
REGEX:
false
REPLACE:
j
[/MATCH_REPLACE]
[DUMMY]
NAME:
end
[/DUMMY]