mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 06:28:15 +02:00
Improve URL error messages 411, 412, 413
This commit is contained in:
+3
-3
@@ -891,11 +891,11 @@ en:
|
||||
title: 'Website issue'
|
||||
description: 'There is an unspecified issue with a contact website or URL.'
|
||||
411:
|
||||
description: 'The URL {var1} cannot be opened (HTTP status code {var2}).'
|
||||
description: '{var1} may have an outdated URL: {var2} returned HTTP status code {var3}.'
|
||||
412:
|
||||
description: 'Possible domain squatting: The URL has suspicious text: "{var1}".'
|
||||
description: '{var1} may have an outdated URL: {var2} contained suspicious text "{var3}".'
|
||||
413:
|
||||
description: 'Possible non-match. Content of the URL did not contain these keywords: ({var1}).'
|
||||
description: '{var1} may have an outdated URL: {var2} did not contain keywords "{var3}".'
|
||||
streetside:
|
||||
tooltip: "Streetside photos from Microsoft"
|
||||
title: "Photo Overlay (Bing Streetside)"
|
||||
|
||||
+9
-6
@@ -475,20 +475,23 @@
|
||||
"411": {
|
||||
"title": "http error",
|
||||
"severity": "error",
|
||||
"description": "The URL (<a target=\"_blank\" href=\"$1\">$1</a>) cannot be opened (HTTP status code $2)",
|
||||
"regex": "href=(.+)>\\1</a>\\) cannot be opened \\(HTTP status code (\\d+)\\)"
|
||||
"description": "The URL (<a target=_blank href=$1>$1</a>) cannot be opened (HTTP status code $2)",
|
||||
"IDs": ["this", "url", ""],
|
||||
"regex": "(this feature)~.+ href=([^>]+)>.+ code (\\d+)\\)"
|
||||
},
|
||||
"412": {
|
||||
"title": "domain hijacking",
|
||||
"severity": "error",
|
||||
"description": "Possible domain squatting: <a target=\"_blank\" href=\"$1\">$1</a>. Suspicious text is: \"$2\"",
|
||||
"regex": "Possible domain squatting: <a target=_blank href=(.+)>\\1</a>\\. Suspicious text is: "(.+)""
|
||||
"description": "Possible domain squatting: <a target=_blank href=$1>$1</a>. Suspicious text is: \"$2\"",
|
||||
"IDs": ["this", "url", ""],
|
||||
"regex": "(this feature)~.+ href=([^>]+)>.+ is: "(.+)""
|
||||
},
|
||||
"413": {
|
||||
"title": "non-match",
|
||||
"severity": "error",
|
||||
"description": "Content of the URL (<a target=\"_blank\" href=\"$1\">$1</a>) did not contain these keywords: ($2)",
|
||||
"regex": "Content of the URL (<a target=_blank href=(.+)>\\1</a>) did not contain these keywords: \\((.+)\\)"
|
||||
"description": "Content of the URL (<a target=_blank href=$1>$1</a>) did not contain these keywords: ($2)",
|
||||
"IDs": ["this", "url", ""],
|
||||
"regex": "(this feature)~.+ href=([^>]+)>.+ keywords: \\((.+)\\)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user