fix(YouTube - Custom branding name): Custom name did not apply properly

Close https://github.com/anddea/revanced-patches/issues/1421
Close https://github.com/anddea/revanced-patches/issues/1426
This commit is contained in:
Aaron Veil 2026-03-25 10:02:00 +03:00
parent 7c8e87425e
commit 02b5519113

View file

@ -298,7 +298,7 @@ fun ResourcePatchContext.removeStringsElements(
replacements.forEach replacementsLoop@{ replacement ->
targetXml.writeText(
targetXml.readText()
.replaceFirst(""" {4}<string name="$replacement".+""".toRegex(), "")
.replaceFirst(""" +<string name="$replacement".+""".toRegex(), "")
)
}
}