I encountered the issue just today that SwiftGen crashed with fatal error when parsing a .strings file containing some "" strings in it. I then went to debug it and found it was because our lowerFirstWord filter was crashing on empty strings (startIndex == endIndex in those cases, which we didn't guard about as we used < not <= as a guard)
But then when I looked at the code (Filters+Strings.swift) I saw that it was already fixed in stable by @fortmarek when he was working on #127 – we just didn't add the entry for it given the main focus of #127 was on something else (for which it does have a CHANGELOG entry). But since #127 fixed 2 issues in one, we should also mention the fix there.
I encountered the issue just today that SwiftGen crashed with fatal error when parsing a
.strings
file containing some""
strings in it. I then went to debug it and found it was because ourlowerFirstWord
filter was crashing on empty strings (startIndex == endIndex
in those cases, which we didn't guard about as we used<
not<=
as a guard)But then when I looked at the code (
Filters+Strings.swift
) I saw that it was already fixed instable
by @fortmarek when he was working on #127 – we just didn't add the entry for it given the main focus of #127 was on something else (for which it does have a CHANGELOG entry). But since #127 fixed 2 issues in one, we should also mention the fix there.