We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bcfbaf commit b3e02dbCopy full SHA for b3e02db
JSMessagesTableViewController/NSString+JSMessagesView.m
@@ -32,9 +32,7 @@ @implementation NSString (JSMessagesView)
32
33
- (NSString *)trimWhitespace
34
{
35
- NSMutableString *str = [self mutableCopy];
36
- CFStringTrimWhitespace((__bridge CFMutableStringRef)str);
37
- return str;
+ return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
38
}
39
40
- (NSUInteger)numberOfLines
0 commit comments