Skip to content
Snippets Groups Projects
Commit b9237709 authored by Marcin Cieślak's avatar Marcin Cieślak
Browse files

Validate Misskey URL

parent 3d19d4ae
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
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