File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
WooCommerce/Classes/ViewRelated/Orders/Order Details/Address Edit Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ final class CountrySelectorCommand: ObservableListSelectorCommand {
4848 return data = countries
4949 }
5050
51- // iOS predictive text on keyboard adds an empty space after the word, what makes the term not being found
52- let normalizedString = String . removeLastCharacterIfWhitespace ( from: term)
53- data = countries. filter { $0. name. localizedCaseInsensitiveContains ( normalizedString) }
51+ data = countries. filter { $0. name. localizedCaseInsensitiveContains ( term. trim ( ) ) }
5452 }
5553}
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ final class StateSelectorCommand: ObservableListSelectorCommand {
4848 return data = states
4949 }
5050
51- // iOS predictive text on keyboard adds an empty space after the word, what makes the term not being found
52- let normalizedString = String . removeLastCharacterIfWhitespace ( from: term)
53- data = states. filter { $0. name. localizedCaseInsensitiveContains ( normalizedString) }
51+ data = states. filter { $0. name. localizedCaseInsensitiveContains ( term. trim ( ) ) }
5452 }
5553}
You can’t perform that action at this time.
0 commit comments