Calendar list shouldn't show unnormalised URIs

This commit is contained in:
zbettenbuk 2018-04-10 12:44:10 +02:00 committed by Lyubo Marinov
parent fc25125667
commit 8c0bb377ba
1 changed files with 5 additions and 1 deletions

View File

@ -192,7 +192,11 @@ function _getURLFromEvent(event, knownDomains) {
const matches = urlRegExp.exec(field) || schemeRegExp.exec(field);
if (matches) {
return matches[0];
const url = parseURIString(matches[0]);
if (url) {
return url.toString();
}
}
}
}