Skip to content

Commit

Permalink
Merge pull request #19 from Bl4ckL10n/hotfix/http_is_being_added_even…
Browse files Browse the repository at this point in the history
…_when_url_starts_with_http

Fix protocol checking logic
  • Loading branch information
maxalmonte14 authored Jun 23, 2022
2 parents 82979dc + 97c133a commit b0baa9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static bool IsValid(string URL)

public static string NormalizeURL(string URL)
{
if (!URL.StartsWith("http://") || !URL.StartsWith("https://"))
if (!URL.StartsWith("http://") && !URL.StartsWith("https://"))
{
return "http://" + URL;
}
Expand Down

0 comments on commit b0baa9a

Please sign in to comment.