mirror of
				https://github.com/caojiezi2003/Snavigation.git
				synced 2025-10-31 02:03:51 +00:00 
			
		
		
		
	🐞 fix: 修复网址正则
This commit is contained in:
		
							parent
							
								
									71663fd222
								
							
						
					
					
						commit
						ad58785dc4
					
				| @ -9,10 +9,8 @@ const identifyInput = (input) => { | |||||||
|    * 网址正则 |    * 网址正则 | ||||||
|    * @type {RegExp} |    * @type {RegExp} | ||||||
|    */ |    */ | ||||||
|   const urlRegex = new RegExp( |   const urlRegex = new RegExp("https?://[\\w.-]+", "i"); | ||||||
|     "^(http://www.|https://www.|http://|https://)?[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$", | 
 | ||||||
|   ); |  | ||||||
|    |  | ||||||
|   /** |   /** | ||||||
|    * IP 正则 |    * IP 正则 | ||||||
|    * @type {RegExp} |    * @type {RegExp} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 imsyy
						imsyy