Fix Stringium gneration when translation contains an =

This commit is contained in:
t.schmitt committed 2022-07-22 17:38:33 +02:00
1 parent ea833fbae7
commit 0775be88b0
15 files changed
+229 -45

No files matched your search

+2 -7
View File
@@ -40,13 +40,8 @@ class TwineFileParser {
return
}
let rightElement: String = {
if let last = splitLine.last, splitLine.count == 2 {
return String(last)
}
return ""
}()
let rightElement: String = splitLine.dropFirst().joined(separator: "=")
// "fr " => "fr"
let leftHand = String(leftElement).removeTrailingWhitespace()
// " Test" => "Test"