Use lowercase string in the Nth-Expression selector parser
This commit is contained in:
1 parent
46beae1b2d
commit
4f47a750e0
1 file changed
+2
-4
@@ -17,10 +17,8 @@
|
||||
{
|
||||
NSCharacterSet *whitespace = [NSCharacterSet whitespaceAndNewlineCharacterSet];
|
||||
|
||||
NSString *string = [expression copy];
|
||||
|
||||
string = [string stringByTrimmingCharactersInSet:whitespace];
|
||||
string = string.lowercaseString;
|
||||
NSString *string = [expression.lowercaseString copy];
|
||||
string = [[string stringByTrimmingCharactersInSet:whitespace] copy];
|
||||
|
||||
if ([string isEqualToStringIgnoringCase:@"odd"]) {
|
||||
return CSSNthExpressionOdd;
|
||||
|
||||
Reference in new issue
Block a user