forked from open-webui/open-webui
		
	fix: checkVersion
This commit is contained in:
		
							parent
							
								
									032d7c7440
								
							
						
					
					
						commit
						59fb1b933d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -102,8 +102,9 @@ export const copyToClipboard = (text) => { | |||
| }; | ||||
| 
 | ||||
| export const checkVersion = (required, current) => { | ||||
| 	// Returns true when current version is below required
 | ||||
| 	return current === '0.0.0' | ||||
| 		? true | ||||
| 		? false | ||||
| 		: current.localeCompare(required, undefined, { | ||||
| 				numeric: true, | ||||
| 				sensitivity: 'case', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek