Skip to content

Commit 3819346

Browse files
committed
[bug] fix search not matching name with or without spaces
1 parent 1cc6e9b commit 3819346

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/js/search.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var search = (function(){
4343
searchedBookmarks.total=bookmarks.get().length;
4444
bookmarks.get().forEach(function(arrayItem,index){
4545
varmatchUrl=(arrayItem.url!=null)&&(arrayItem.url.replace(/^https?\:\/\//i,"").replace(/\/$/,"").toLowerCase().includes(searchInput.value.toLowerCase().replace(/\s/g,"")));
46-
varmatchName=(arrayItem.name!=null)&&(arrayItem.name.toLowerCase().includes(searchInput.value.toLowerCase().replace(/\s/g,"")));
46+
varmatchName=(arrayItem.name!=null)&&(arrayItem.name.toLowerCase().replace(/\s/g,"").includes(searchInput.value.toLowerCase().replace(/\s/g,"")));
4747
if(matchUrl||matchName){
4848
varbookmarkDataCopy=JSON.parse(JSON.stringify(arrayItem));
4949
searchedBookmarks.matching.push(bookmarkDataCopy);

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="3.61.0";
3+
varcurrent="3.61.1";
44

55
varcompare=function(a,b){
66
varpa=a.split(".");

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "3.61.0",
5+
"version": "3.61.1",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)