Skip to content
Snippets Groups Projects
Commit 376df84e authored by vlorentz's avatar vlorentz
Browse files

Fix validateForgeUrl

It rejected all URLs, because the protocol always ends with a colon.
parent d6031c13
No related branches found
Tags v0.1.4
No related merge requests found
......@@ -127,7 +127,7 @@ export function populateRequestBrowseList() {
export function validateForgeUrl(input) {
let customValidity = '';
if (!validateUrl(input.value.trim(), ['http', 'https'])) {
if (!validateUrl(input.value.trim(), ['http:', 'https:'])) {
customValidity = 'The provided forge URL is not valid.';
}
input.setCustomValidity(customValidity);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment