forked from MapComplete/MapComplete
Fix: normalization of URLs, formatting, stabilize inputHelper
This commit is contained in:
parent
cc60d2a5fb
commit
441c4df4f6
3 changed files with 25 additions and 28 deletions
|
@ -45,10 +45,6 @@ export default class UrlValidator extends Validator {
|
|||
cleaned = cleaned.substr(0, cleaned.length - 1)
|
||||
}
|
||||
|
||||
if (!str.startsWith("http") && cleaned.startsWith("https://")) {
|
||||
cleaned = cleaned.substr("https://".length)
|
||||
}
|
||||
|
||||
return cleaned
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue