mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-29 23:38:13 +09:00
commit
c54e4672e8
@ -18,7 +18,11 @@ const form = [{
|
|||||||
}, {
|
}, {
|
||||||
type: 'input',
|
type: 'input',
|
||||||
name: 'url',
|
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',
|
type: 'input',
|
||||||
name: 'port',
|
name: 'port',
|
||||||
|
Loading…
Reference in New Issue
Block a user