mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-03 18:50:53 +01:00 
			
		
		
		
	Fix gallery search for folders with underscore
Gallery title names replace '_' in the folder name with ' ' (generate_main_html()). To match against these title names when searching, we must also replace '_' with ' ' for each folder name we add to the list of titles to unhide.
This commit is contained in:
		@@ -139,7 +139,7 @@ function filter_searcher(){
 | 
			
		||||
					break
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if (verifier){doujinshi_id.push(data[i].Folder);}
 | 
			
		||||
		if (verifier){doujinshi_id.push(data[i].Folder.replace("_", " "));}
 | 
			
		||||
	}
 | 
			
		||||
	var gallery = document.getElementsByClassName("gallery-favorite");
 | 
			
		||||
	for (var i = 0; i < gallery.length; i++){
 | 
			
		||||
@@ -174,4 +174,4 @@ function tag_maker(data){
 | 
			
		||||
			document.getElementById("tags").appendChild(node);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user