Add support vor v15.1 (#2)
This commit is contained in:
committed by
GitHub
parent
977c01327f
commit
4688e9b0f7
@@ -13,7 +13,8 @@ public enum EmojiManager {
|
||||
case v13_1 = 13.1
|
||||
case v14 = 14
|
||||
case v15 = 15
|
||||
|
||||
case v15_1 = 15.1
|
||||
|
||||
public var fileName: String {
|
||||
return "emojis_v\(versionIdentifier)"
|
||||
}
|
||||
@@ -26,6 +27,8 @@ public enum EmojiManager {
|
||||
return "14.0"
|
||||
case .v15:
|
||||
return "15.0"
|
||||
case .v15_1:
|
||||
return "15.1"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
3834
Sources/EmojiKit/Resources/emojis_v15.1.json
Normal file
3834
Sources/EmojiKit/Resources/emojis_v15.1.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,7 @@ import Foundation
|
||||
import ArgumentParser
|
||||
import EmojiKit
|
||||
|
||||
#if os(macOS)
|
||||
struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
|
||||
|
||||
static let configuration: CommandConfiguration = CommandConfiguration(
|
||||
@@ -121,5 +122,5 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
extension EmojiManager.Version: ExpressibleByArgument {}
|
||||
|
||||
@@ -11,11 +11,13 @@ import ArgumentParser
|
||||
@main
|
||||
struct EmojiScripts: ParsableCommand, AsyncParsableCommand {
|
||||
|
||||
#if os(macOS)
|
||||
static let configuration: CommandConfiguration = CommandConfiguration(
|
||||
commandName: "emojis",
|
||||
abstract: "Manage Emojis from Unicode",
|
||||
subcommands: [
|
||||
EmojiDownloader.self,
|
||||
EmojiDownloader.self
|
||||
]
|
||||
)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ class UnicodeParser {
|
||||
/// Split line into list of entries
|
||||
let lineComponents = line.split(separator: ";")
|
||||
|
||||
/// Get hex-string from compenents
|
||||
/// Get hex-string from components
|
||||
guard let hexString = lineComponents.map({ $0.trim() }).first else {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user