forked from SwiftyJSON/SwiftyJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match pre-swift3 behavior for String -> Bool
Before the Swift 3 update, boolValue used the NSString boolvalue property. This property would return true for 'Y','y','T','t' in addition to 'true'. See more at https://developer.apple.com/reference/foundation/nsstring/1409420-boolvalue During the swift 3 upgrade, this was changed slightly so only "true" would return true. This commit updates that behavior to match the previous behavior for projects relying on that functionality.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters