mirror of
				https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
				synced 2025-10-31 13:41:07 +08:00 
			
		
		
		
	fix: 脚本链接为路径时带参解析
This commit is contained in:
		
							parent
							
								
									3e14f91347
								
							
						
					
					
						commit
						dca3d2f79c
					
				| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "sub-store", | ||||
|   "version": "2.19.58", | ||||
|   "version": "2.19.59", | ||||
|   "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", | ||||
|   "main": "src/main.js", | ||||
|   "scripts": { | ||||
|  | ||||
| @ -142,9 +142,9 @@ async function processFn( | ||||
|                         ? `#${rawArgs[1]}` | ||||
|                         : '' | ||||
|                 }`;
 | ||||
|                 const downloadUrlMatch = url.match( | ||||
|                     /^\/api\/(file|module)\/(.+)/, | ||||
|                 ); | ||||
|                 const downloadUrlMatch = url | ||||
|                     .split('#')[0] | ||||
|                     .match(/^\/api\/(file|module)\/(.+)/); | ||||
|                 if (downloadUrlMatch) { | ||||
|                     let type = ''; | ||||
|                     try { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 xream
						xream