We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2140ed0 commit 6a51aceCopy full SHA for 6a51ace
Sources/POEditorParser/Lib/LiteralsParser.swift
@@ -29,7 +29,10 @@ struct Variable {
29
- alreadyReadPages <- this should not be captialized (or we'll lose the Read and Pages capital letters)
30
*/
31
32
- let words = rawKey.split(separator: " ").map(String.init)
+ let words = rawKey
33
+ .components(separatedBy: .alphanumerics.inverted)
34
+ .flatMap { $0.split(separator: " ") }
35
+ .map(String.init)
36
if words.count == 1 {
37
return words[0].lowercaseFirst
38
}
0 commit comments