forked from MapComplete/MapComplete
Fix #763
This commit is contained in:
parent
6ad64e3f70
commit
03e1b47264
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ class UrlTextfieldDef extends TextFieldDef {
|
||||||
reformat(str: string): string {
|
reformat(str: string): string {
|
||||||
try {
|
try {
|
||||||
let url: URL
|
let url: URL
|
||||||
str = str.toLowerCase()
|
// str = str.toLowerCase() // URLS are case sensitive. Lowercasing them might break some URLS. See #763
|
||||||
if (!str.startsWith("http://") && !str.startsWith("https://") && !str.startsWith("http:")) {
|
if (!str.startsWith("http://") && !str.startsWith("https://") && !str.startsWith("http:")) {
|
||||||
url = new URL("https://" + str)
|
url = new URL("https://" + str)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue