summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-15 18:17:00 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-15 18:17:00 (GMT)
commitacc4b7e99cd05a78d1adbfdab1abc58db342c396 (patch)
tree1301b0cf3eef42113ff2e99c5673536584e3fe14 /src/util.cpp
parent4b806f18041e952f17c26d6dc84ac21cb48e3322 (diff)
downloadDoxygen-acc4b7e99cd05a78d1adbfdab1abc58db342c396.zip
Doxygen-acc4b7e99cd05a78d1adbfdab1abc58db342c396.tar.gz
Doxygen-acc4b7e99cd05a78d1adbfdab1abc58db342c396.tar.bz2
Added missing protocols
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 47ca215..4a35517 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6686,8 +6686,10 @@ bool isURL(const QCString &url)
{
QCString loc_url = url.stripWhiteSpace();
return loc_url.left(5)=="http:" || loc_url.left(6)=="https:" ||
- loc_url.left(4)=="ftp:" || loc_url.left(5)=="ftps:" || loc_url.left(5)=="sftp:" ||
- loc_url.left(5)=="file:";
+ loc_url.left(4)=="ftp:" || loc_url.left(5)=="ftps:" ||
+ loc_url.left(5)=="sftp:" || loc_url.left(5)=="file:" ||
+ loc_url.left(5)=="news:" || loc_url.left(4)=="irc:" ||
+ loc_url.left(5)=="ircs:";
}
/** Corrects URL \a url according to the relative path \a relPath.
* Returns the corrected URL. For absolute URLs no correction will be done.