Skip to content

Commit

Permalink
make SPMessageLanguage(rawValue:) case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Jan 30, 2025
1 parent ba31767 commit 300d4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ConsentViewController/Classes/SPMessageLanguage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ import Foundation
}
// swiftlint:disable:next cyclomatic_complexity function_body_length
public init?(rawValue: RawValue) {
switch rawValue {
switch rawValue.uppercased() {
case "":
self = .BrowserDefault
case "EN":
Expand Down

0 comments on commit 300d4e4

Please sign in to comment.