Skip to content

Commit

Permalink
Update Unbox.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
frranck authored Sep 6, 2016
1 parent 0736303 commit 83e6040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Unbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ extension Bool: UnboxableRawType {
}

public static func transformUnboxedString(unboxedString: String) -> Bool? {
for element in [ "true", "t" , "y", "yes" ] where element.uppercased() == unboxedString.uppercased() {
for element in [ "true", "t" , "y", "yes" ] where element == unboxedString.lowercased() {
return true
}
for element in [ "false", "f" , "n", "no" ] where element.uppercased() == unboxedString.uppercased() {
for element in [ "false", "f" , "n", "no" ] where element == unboxedString.lowercased() {
return false
}
return nil
Expand Down

0 comments on commit 83e6040

Please sign in to comment.