Skip to content

Commit e847b5e

Browse files
committed
swift 4 update - removed characters
1 parent de630b3 commit e847b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebLinking.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func takeFirst(_ input: [String]) -> (String, ArraySlice<String>) {
193193
func trim(_ lhs: Character, _ rhs: Character) -> (String) -> String {
194194
return { input in
195195
if input.hasPrefix("\(lhs)") && input.hasSuffix("\(rhs)") {
196-
return String(input[input.characters.index(after: input.startIndex)..<input.characters.index(before: input.endIndex)])
196+
return String(input[input.index(after: input.startIndex)..<input.index(before: input.endIndex)])
197197
}
198198

199199
return input

0 commit comments

Comments
 (0)