handle numbers too
This commit is contained in:
		
							parent
							
								
									f6f88f184f
								
							
						
					
					
						commit
						cc89f1bbd1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -56,7 +56,7 @@ function getBangredirectUrl() {
 | 
			
		|||
  const selectedBang = bangs.find((b) => b.t === bangCandidate) ?? defaultBang;
 | 
			
		||||
 | 
			
		||||
  // Remove the first bang from the query
 | 
			
		||||
  const cleanQuery = query.replace(/![a-z]+\s*/i, "").trim();
 | 
			
		||||
  const cleanQuery = query.replace(/![a-z0-9]+\s*/i, "").trim();
 | 
			
		||||
 | 
			
		||||
  // Format of the url is:
 | 
			
		||||
  // https://www.google.com/search?q={{{s}}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue