Skip to content

Commit 9fd46e7

Browse files
minuscorpsebastianvarela
authored andcommitted
Bump version
- Fix issue with scaped characters.
1 parent d058f4d commit 9fd46e7

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

POEditorParser.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "POEditorParser"
4-
s.version = "0.3.7"
4+
s.version = "0.3.8"
55
s.summary = "`POEditorParser` generates a swift file with an input strings file from POEditor."
66

77
s.description = <<-DESC

Sources/POEditorParser/Lib/LiteralsParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public class StringTranslationParser: TranslationParser {
278278
s.scanLocation += 2
279279
var finalValue: NSString?
280280
if let value = value {
281-
finalValue = value.substring(to: value.length).unescaped as NSString
281+
finalValue = value.substring(to: value.length) as NSString
282282
}
283283

284284
translations.append(Translation(rawKey: key! as String, rawValue: finalValue as String? ?? ""))

Sources/POEditorParser/Lib/Swift+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension String {
1818
let entities = ["\0", "\t", "\n", "\r", "\"", "\'", "\\"]
1919
var current = self
2020
for entity in entities {
21-
let descriptionCharacters = entity.debugDescription.dropFirst().dropLast()
21+
let descriptionCharacters = entity.dropFirst().dropLast()
2222
current = current.replacingOccurrences(of: descriptionCharacters, with: entity)
2323
}
2424
return current

bin/poe

-84 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)