From 12941a107d8a9c5dd982927ab201e8a96adf167f Mon Sep 17 00:00:00 2001 From: leoGeorges Date: Sat, 3 Oct 2020 17:36:26 +0200 Subject: [PATCH] Use normalized text --- pages/graphql.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 25217dabe..85605c31b 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -456,8 +456,8 @@ export default { const isFilterTextFoundInDescription = graphqlFieldObject.description .toLowerCase() - .includes(text) - const isFilterTextFoundInName = graphqlFieldObject.name.toLowerCase().includes(text) + .includes(normalizedText) + const isFilterTextFoundInName = graphqlFieldObject.name.toLowerCase().includes(normalizedText) return isFilterTextFoundInDescription || isFilterTextFoundInName }, @@ -470,6 +470,7 @@ export default { }, getFilteredGraphqlTypes({ filterText, types }) { if (!filterText) return types + return types.filter((type) => { const isFilterTextMatching = this.isTextFoundInGraphqlFieldObject({ text: filterText,