fix(Custom branding name): patching time is long on RVX Manager

This commit is contained in:
inotia00 2024-01-18 07:36:16 +09:00
parent e613fd2d67
commit c93402a88d

View File

@ -19,7 +19,7 @@ abstract class AbstractRemoveStringsElementsPatch(
replacements.forEach replacementsLoop@{ replacement ->
targetXml.writeText(
targetXml.readText()
.replace(""".+"$replacement".+""".toRegex(), "")
.replaceFirst(""" {4}<string name="$replacement".+""".toRegex(), "")
)
}
}