mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Fix for issue #750 irrelevant categories
This commit is contained in:
		
							parent
							
								
									e405b67bfb
								
							
						
					
					
						commit
						3681176f54
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -68,7 +68,7 @@ public class PrefixUpdater extends AsyncTask<Void, Void, List<String>> { | |||
|             //Check if s contains a 4-digit word anywhere within the string (.* is wildcard) | ||||
|             //And that s does not equal the current year or previous year | ||||
|             //And if it is an irrelevant category such as Media_needing_categories_as_of_16_June_2017(Issue #750) | ||||
|             if(s.matches(".*(19|20)\\d{2}.*") && !s.contains(yearInString) && !s.contains(prevYearInString) | ||||
|             if((s.matches(".*(19|20)\\d{2}.*") && !s.contains(yearInString) && !s.contains(prevYearInString)) | ||||
|                     ||s.matches("(.*)needing(.*)")||s.matches("(.*)taken on(.*)")) { | ||||
|                 Timber.d("Filtering out irrelevant result: %s", s); | ||||
|                 iterator.remove(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Achal Shantharam
						Achal Shantharam