1
0
Fork 1
mirror of https://example.com synced 2024-11-23 08:56:38 +09:00

Merge pull request #1583 from saper/validate-url

Validate Misskey URL
This commit is contained in:
syuilo 2018-05-16 07:47:22 +09:00 committed by GitHub
commit c54e4672e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,11 @@ const form = [{
}, {
type: 'input',
name: 'url',
message: 'URL you want to run Misskey:'
message: 'URL you want to run Misskey:',
validate: function(wannabeurl) {
return wannabeurl.match('^http\(s?\)://') ? true :
'URL needs to start with http:// or https://';
}
}, {
type: 'input',
name: 'port',