mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 00:45:35 -04:00 
			
		
		
		
	Cleaning up the regexp for #69.
This commit is contained in:
		
							parent
							
								
									d0828bc80b
								
							
						
					
					
						commit
						b18cf97f7c
					
				| @ -330,9 +330,9 @@ function highlightKeywords($text, $keyword) { | ||||
| 	$wordsAry = explode(" ", $keyword); | ||||
| 	$wordsCount = count($wordsAry); | ||||
| 	 | ||||
| 	// Using REGEXP so remove regex from search
 | ||||
| 	$find = array('/\*/', '/\./', '/\$/', '/\^/', '/\?/', '/\+/', '/\[/', '/\]/', '/\|/', '/\(/', '/\)/', '/\,/', '/\{/', '/\}/', '/\:/', '/\\\/'); | ||||
| 	$replace = array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');		 | ||||
| 	// Using REGEXP, this removes regex from search
 | ||||
| 	$find = array('/[\*\.\$\^\?\+\[\]\|\(\)\,\{\}\:\\\]/'); | ||||
| 	$replace = array(''); | ||||
| 	 | ||||
| 	for($i=0;$i<$wordsCount;$i++) { | ||||
| 		 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user