mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Added regex to strip local manga chapter names (#983)
* added regex to strip non-alphanumeric characters in local filenames
This commit is contained in:
		
				
					committed by
					
						 Bram van de Kerkhof
						Bram van de Kerkhof
					
				
			
			
				
	
			
			
			
						parent
						
							0db4fcc27e
						
					
				
				
					commit
					ff4a015baa
				
			| @@ -144,7 +144,7 @@ class LocalSource(private val context: Context) : CatalogueSource { | ||||
|                         } else { | ||||
|                             chapterFile.nameWithoutExtension | ||||
|                         } | ||||
|                         val chapNameCut = chapName.replace(manga.title, "", true).trim() | ||||
|                         val chapNameCut = chapName.replace(manga.title, "", true).trim(' ', '-', '_') | ||||
|                         name = if (chapNameCut.isEmpty()) chapName else chapNameCut | ||||
|                         date_upload = chapterFile.lastModified() | ||||
|                         ChapterRecognition.parseChapterNumber(this, manga) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user