From d87ddbcd8c690dc548390a4c19739cd14076f58f Mon Sep 17 00:00:00 2001 From: Madeline Date: Fri, 4 Nov 2022 04:09:20 -0400 Subject: [PATCH] Comment out toki pona word matching in english mode --- Toki Trainer/ViewModels/TokiDictionaryViewModel.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Toki Trainer/ViewModels/TokiDictionaryViewModel.swift b/Toki Trainer/ViewModels/TokiDictionaryViewModel.swift index b92d4d0..c1a4a9b 100644 --- a/Toki Trainer/ViewModels/TokiDictionaryViewModel.swift +++ b/Toki Trainer/ViewModels/TokiDictionaryViewModel.swift @@ -48,9 +48,10 @@ class TokiDictionaryViewModel: ObservableObject { var entryMatch = false // Check if word matches toki pona form, even partially - if value.word.hasPrefix(input) { - entryMatch = true - } + // Commented out because toki words shouldn't be matched in english mode +// if value.word.hasPrefix(input) { +// entryMatch = true +// } // Check if any part of the word definitions match in English, even partially, but // only by prefix (if one of the definition words matches the beginning of the word with