[gnome-characters] menu: Fix font filter matching
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] menu: Fix font filter matching
- Date: Wed, 19 Aug 2015 08:34:59 +0000 (UTC)
commit 6f63a1d8fe497b05d27a80469a3a4451784918c2
Author: Daiki Ueno <dueno src gnome org>
Date: Wed Aug 19 17:33:39 2015 +0900
menu: Fix font filter matching
We should AND matching, instead of OR.
src/menu.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/menu.js b/src/menu.js
index f7e5c7f..19a82b2 100644
--- a/src/menu.js
+++ b/src/menu.js
@@ -94,7 +94,7 @@ const MenuPopover = new Lang.Class({
return true;
let nameWords = row._family.split(/\s+/).map(String.toLowerCase);
- return this._keywords.some(function(keyword, index, array) {
+ return this._keywords.every(function(keyword, index, array) {
return nameWords.some(function(nameWord, index, array) {
return nameWord.indexOf(keyword) >= 0;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]