mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Validate Misskey URL
This commit is contained in:
		
							parent
							
								
									3d19d4ae52
								
							
						
					
					
						commit
						b92377097c
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue