mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Use matches instead of contains
This commit is contained in:
		
							parent
							
								
									f14c7eb7ba
								
							
						
					
					
						commit
						ab4669b99d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -228,7 +228,7 @@ public class CategorizationFragment extends Fragment { | |||
|         //"\\b(19|20)\\d{2}\\b" | ||||
|         for(Iterator<String> item = mergedItemsList.iterator(); item.hasNext();) { | ||||
|             String s = item.next(); | ||||
|             if(s.contains("\b(19|20)\\d{2}\b")) { | ||||
|             if(s.matches("\\b(19|20)\\d{2}\\b")) { | ||||
|                 Log.d(TAG, "Filtering out year " + s); | ||||
|                 item.remove(); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan