mirror of
				https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
				synced 2025-10-31 08:51:04 +08:00 
			
		
		
		
	fix_clashprovider_test
This commit is contained in:
		
							parent
							
								
									b80d7f5875
								
							
						
					
					
						commit
						74c4719806
					
				| @ -8,7 +8,7 @@ function HTML() { | |||||||
| 
 | 
 | ||||||
| function ClashProvider() { | function ClashProvider() { | ||||||
|     const name = 'Clash Provider'; |     const name = 'Clash Provider'; | ||||||
|     const test = (raw) => raw.indexOf('payload:') === 0; |     const test = (raw) => /^payload:/gm.exec(raw).index >= 0; | ||||||
|     const parse = (raw) => { |     const parse = (raw) => { | ||||||
|         return raw.replace('payload:', '').replace(/^\s*-\s*/gm, ''); |         return raw.replace('payload:', '').replace(/^\s*-\s*/gm, ''); | ||||||
|     }; |     }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 makabaka
						makabaka