From ca2c88be07869844294209dc0a84572f5b8c9d30 Mon Sep 17 00:00:00 2001 From: Vrontis Date: Thu, 11 Jul 2019 19:40:30 +0000 Subject: [PATCH] Update Locale.java | Fix for pseudo-empty lines in translation. --- src/main/java/com/songoda/epicheads/Locale.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicheads/Locale.java b/src/main/java/com/songoda/epicheads/Locale.java index 598f8c1..f64fd75 100644 --- a/src/main/java/com/songoda/epicheads/Locale.java +++ b/src/main/java/com/songoda/epicheads/Locale.java @@ -355,7 +355,7 @@ public class Locale { try (BufferedReader reader = new BufferedReader(new FileReader(file))) { String line; for (int lineNumber = 0; (line = reader.readLine()) != null; lineNumber++) { - if (line.isEmpty() || line.startsWith("#") /* Comment */) continue; + if (line.trim().isEmpty() || line.startsWith("#") /* Comment */) continue; Matcher matcher = NODE_PATTERN.matcher(line); if (!matcher.find()) {