Skip to content

Commit

Permalink
Extended cyrillic is now included, but the common keys with the norma…
Browse files Browse the repository at this point in the history
…l cyrillic map are replaced by the normal cyrillic map
  • Loading branch information
Snesnopic committed May 23, 2024
1 parent 5cd7e01 commit 9a8e604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Morser/Model/MorseEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ class MorseEncoder {
PersianToMorse.forEach { (key, value) in
self.PersianToMorse[key] = String(value.reversed())
}
let dictionaries = [AlphaNumToMorse, GreekToMorse, CyrillicToMorse, HebrewToMorse, ArabicToMorse, PersianToMorse, KurdishToMorse, DevanagariToMorse, JapaneseToMorse, ThaiToMorse]
let dictionaries = [AlphaNumToMorse, GreekToMorse, ExtendedCyrillicToMorse, CyrillicToMorse, HebrewToMorse, ArabicToMorse, PersianToMorse, KurdishToMorse, DevanagariToMorse, JapaneseToMorse, ThaiToMorse]
let bigDictionary = dictionaries.reduce(into: [:]) { partialResult, map in
partialResult = map.merging(partialResult, uniquingKeysWith: { current, _ in
current
Expand Down

0 comments on commit 9a8e604

Please sign in to comment.