We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a35d044 commit a28e9acCopy full SHA for a28e9ac
WooCommerce/Classes/ViewRelated/Search/Order/OrderSearchUICommand.swift
@@ -86,10 +86,10 @@ final class OrderSearchUICommand: SearchUICommand {
86
/// See https://github.com/woocommerce/woocommerce-ios/issues/2506
87
///
88
func sanitizeKeyword(_ keyword: String) -> String {
89
- guard keyword.starts(with: "#") else {
90
- return keyword
+ if keyword.starts(with: "#") {
+ return keyword.removing(at: keyword.startIndex)
91
}
92
- return keyword.removing(at: keyword.startIndex)
+ return keyword
93
94
95
0 commit comments