[gnome-characters] menu: Fix font filter matching



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]