diff --git a/src/juce_core/io/network/juce_URL.cpp b/src/juce_core/io/network/juce_URL.cpp index a5c17c020b..7b11a61ad9 100644 --- a/src/juce_core/io/network/juce_URL.cpp +++ b/src/juce_core/io/network/juce_URL.cpp @@ -129,16 +129,17 @@ bool URL::isWellFormed() const //============================================================================== bool URL::isProbablyAWebsiteURL (const String& possibleURL) { - return possibleURL.containsChar (T('.')) - && (! possibleURL.containsChar (T('@'))) - && (! possibleURL.endsWithChar (T('.'))) - && (possibleURL.startsWithIgnoreCase (T("www.")) - || possibleURL.startsWithIgnoreCase (T("http://")) - || possibleURL.startsWithIgnoreCase (T("ftp://")) - || possibleURL.endsWithIgnoreCase (T(".com")) - || possibleURL.endsWithIgnoreCase (T(".net")) - || possibleURL.endsWithIgnoreCase (T(".org")) - || possibleURL.endsWithIgnoreCase (T(".co.uk"))); + return (possibleURL.containsChar (T('.')) + && (! possibleURL.containsChar (T('@'))) + && (! possibleURL.endsWithChar (T('.'))) + && (possibleURL.startsWithIgnoreCase (T("www.")) + || possibleURL.startsWithIgnoreCase (T("http:")) + || possibleURL.startsWithIgnoreCase (T("ftp:")) + || possibleURL.endsWithIgnoreCase (T(".com")) + || possibleURL.endsWithIgnoreCase (T(".net")) + || possibleURL.endsWithIgnoreCase (T(".org")) + || possibleURL.endsWithIgnoreCase (T(".co.uk"))) + || possibleURL.startsWithIgnoreCase (T("file:"))); } bool URL::isProbablyAnEmailAddress (const String& possibleEmailAddress)