Fix excludeNonTranslatables gradle task.

fork-5.53.8
Cody Henthorne 2021-11-16 16:35:15 -05:00
rodzic 6d3319bfb1
commit 2c1f30db1d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -87,7 +87,7 @@ task excludeNonTranslatables {
def newLines = f.readLines()
.collect { line ->
if (!inMultiline) {
def singleLineMatcher = line =~ /name="([^"]*)".*<\//
def singleLineMatcher = line =~ /name="([^"]*)".*(<\/|\/>)/
if (singleLineMatcher.find()) {
def name = singleLineMatcher.group(1)
if (!line.contains('excludeNonTranslatables') && !translatable.contains(name)) {