Skip to content

Commit

Permalink
Remove Deprecated Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Maccharoli committed Jan 21, 2018
1 parent 044b0da commit ba5d63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ extension Identifier {
}

let numericCharacters: [String] = (0...9).map { "\($0)" }
let type = identifierString.characters.prefix(while: { !numericCharacters.contains(String($0))})
let type = identifierString.prefix(while: { !numericCharacters.contains(String($0))})

let version = identifierString.characters.suffix(from: type.endIndex)
let version = identifierString.suffix(from: type.endIndex)
.split(separator: ",")
.map { Int(String($0)) }

Expand Down

0 comments on commit ba5d63d

Please sign in to comment.