Skip to content

Commit

Permalink
Fix issue where host is missing in urls (probably most common in file…
Browse files Browse the repository at this point in the history
…:// urls
  • Loading branch information
johnste committed Jun 11, 2019
1 parent 2f88eea commit 724c5ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Finicky/Finicky/ShortUrlResolver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class FNShortUrlResolver {
}

func isShortUrl(_ url: URL) -> Bool {
if (url.host == nil) {
return false;
}

let isShortUrlProvider = shortUrlProviders.contains(url.host!)

if !isShortUrlProvider {
Expand Down

0 comments on commit 724c5ed

Please sign in to comment.