mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 17:43:39 +00:00
Don't warn about websites missing http:// or https:// (close #6831)
This commit is contained in:
@@ -16,12 +16,12 @@ export function validationFormatting() {
|
||||
// An empty value is also acceptable
|
||||
return (!email || valid_email.test(email));
|
||||
}
|
||||
|
||||
/*
|
||||
function isSchemePresent(url) {
|
||||
var valid_scheme = /^https?:\/\//i;
|
||||
return (!url || valid_scheme.test(url));
|
||||
}
|
||||
|
||||
*/
|
||||
function showReferenceEmail(selection) {
|
||||
selection.selectAll('.issue-reference')
|
||||
.data([0])
|
||||
@@ -30,7 +30,7 @@ export function validationFormatting() {
|
||||
.attr('class', 'issue-reference')
|
||||
.text(t('issues.invalid_format.email.reference'));
|
||||
}
|
||||
|
||||
/*
|
||||
function showReferenceWebsite(selection) {
|
||||
selection.selectAll('.issue-reference')
|
||||
.data([0])
|
||||
@@ -65,7 +65,7 @@ export function validationFormatting() {
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
if (entity.tags.email) {
|
||||
// Multiple emails are possible
|
||||
var emails = entity.tags.email
|
||||
@@ -97,4 +97,4 @@ export function validationFormatting() {
|
||||
validation.type = type;
|
||||
|
||||
return validation;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user