Merge pull request #1132 from AnonymousRandomPerson/filter-id

Supported searching exact ID match
This commit is contained in:
Stefano 2022-04-09 09:38:54 +02:00 committed by GitHub
commit 943693364a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -422,6 +422,7 @@ function initView(){
value.name.toLowerCase().indexOf(filter) !== -1
|| value.description.toLowerCase().indexOf(filter) !== -1
|| value.subreddit && value.subreddit.toLowerCase().indexOf(filter) !== -1
|| value.id === filter
);
});
document.getElementById("atlasSize").innerHTML = "Found "+sortedAtlas.length+" entries.";