Fix excludeNonTranslatables gradle task.

This commit is contained in:
Cody Henthorne 2021-11-16 16:35:15 -05:00
parent 6d3319bfb1
commit 2c1f30db1d

View file

@ -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)) {