Fix bool-param-default
This commit is contained in:
		
							parent
							
								
									0709cac97f
								
							
						
					
					
						commit
						4ad7632113
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -172,7 +172,7 @@ export const isRemoteUser = (user: any): user is IRemoteUser => | |||
| 	!isLocalUser(user); | ||||
| 
 | ||||
| //#region Validators
 | ||||
| export function validateUsername(username: string, remote?: boolean): boolean { | ||||
| export function validateUsername(username: string, remote = false): boolean { | ||||
| 	return typeof username == 'string' && (remote ? /^\w([\w-]*\w)?$/ : /^\w{1,20}$/).test(username); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue