[bug] fix search not finding some links

This commit is contained in:
zombieFox 2020-01-15 08:26:08 +00:00
parent 71b68cfac5
commit c26956812e
5 changed files with 4 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.19.0",
"version": "4.19.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nighttab",
"version": "4.19.0",
"version": "4.19.1",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {

View File

@ -55,7 +55,6 @@ var search = (function() {
var matchUrl = (arrayItem.url != null) && (arrayItem.url.replace(/^https?\:\/\//i, "").replace(/\/$/, "").toLowerCase().includes(string));
var matchName = (arrayItem.name != null) && (arrayItem.name.toLowerCase().replace(/\s/g, "").includes(string));
if (matchUrl || matchName) {
currentGroup.items.splice(index, 1);
matchingItems.push(JSON.parse(JSON.stringify(arrayItem)));
};
});

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "4.19.0";
var current = "4.19.1";
var name = "Naughty Goose";

View File

@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "4.19.0",
"version": "4.19.1",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"