Fix Stringium gneration when translation contains an =

This commit is contained in:
2022-07-22 17:38:33 +02:00
parent ea833fbae7
commit 0775be88b0
15 changed files with 229 additions and 45 deletions

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"