Non-case sensitive link checking in the hyperlink dialog

Change-Id: I1f31946e68d22c89acffdba5a5b55203892712c1
Reviewed-on: https://gerrit.libreoffice.org/85460
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Muhammet Kara 2019-12-19 03:45:12 +03:00 committed by Michael Meeks
parent 76114dd957
commit 0d2db9ba30

View file

@ -436,7 +436,7 @@ L.Map.include({
},
makeURLFromStr: function(str) {
if (!(str.startsWith('http://') || str.startsWith('https://'))) {
if (!(str.toLowerCase().startsWith('http://') || str.toLowerCase().startsWith('https://'))) {
str = 'http://' + str;
}
return str;