Repository navigation
Disable Next button unless source URL is valid - #2492
Conversation
|
@liggitt let me know what you think. Input |
|
can you run the validation in javascript? I'd much rather do this: I'd rather just check basic things on that page |
|
@liggitt Will |
|
hmm... looks like it doesn't. I really don't want to get in the business of thorough url validation here |
|
@liggitt Yeah, I understand... I'd say we either do very basic regex validation -- I've tried to keep it simple -- or just stick to FWIW, here's the regex: |
|
yeah, even that misses things like |
There was a problem hiding this comment.
could go super-simple and do (ssh://|http://|https://|git).+...
Is there any indication there's an invalid value?
Is that case-sensitive?
There was a problem hiding this comment.
There's an indication of an invalid value when you blur the field.
It is case sensitive.
b96fcb7 to
f4114c8
Compare
|
@liggitt OK, an even simpler regex. Let me know what you think. |
There was a problem hiding this comment.
keep the pattern in the controller... it's used by assets/test/spec/controllers/create.js
f4114c8 to
b155755
Compare
|
@liggitt one more look... Now using |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2097/) (Image: devenv-fedora_1627) |
|
Evaluated for origin up to b155755 |
|
[Test]ing while waiting on the merge queue |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/2418/) |
Merged by openshift-bot

Fixes #2388