Skip to content

Commit db3263c

Browse files
stevetreaseSteve Trease
authored andcommitted
Make search string case insensitive.
1 parent c36f9eb commit db3263c

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Swift Push 4/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>555</string>
22+
<string>556</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIBackgroundModes</key>

Swift Push 4/MasterViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class MasterViewController: UITableViewController, UISearchResultsUpdating {
104104
} else {
105105
self.filteredNotifications = notifications.filter({( notification: NotificationData) -> Bool in
106106
// let categoryMatch = (scope == "All") || (notification.alert == scope)
107-
let stringMatch = notification.alert.rangeOfString(searchController.searchBar.text!)
107+
let stringMatch = notification.alert.lowercaseString.rangeOfString(searchController.searchBar.text!.lowercaseString)
108108
return (stringMatch != nil)
109109
})
110110
}

Swift Push 4/Settings.bundle/Root.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<array>
77
<dict>
88
<key>DefaultValue</key>
9-
<string>555</string>
9+
<string>556</string>
1010
<key>Key</key>
1111
<string>CurrentBuildNumber</string>
1212
<key>Title</key>

0 commit comments

Comments
 (0)