diff --git a/atom/browser/ui/cocoa/NSString+ANSI.mm b/atom/browser/ui/cocoa/NSString+ANSI.mm index 3a8250dde94e..be1bc5054368 100644 --- a/atom/browser/ui/cocoa/NSString+ANSI.mm +++ b/atom/browser/ui/cocoa/NSString+ANSI.mm @@ -106,7 +106,7 @@ @implementation NSString (ANSI) - (BOOL)containsANSICodes { - return [self rangeOfString:@"\\033["].location != NSNotFound; + return [self rangeOfString:@"\033["].location != NSNotFound; } - (NSMutableAttributedString*)attributedStringParsingANSICodes { @@ -114,10 +114,10 @@ base::scoped_nsobject attributes( [[NSMutableDictionary alloc] init]); - NSArray* parts = [self componentsSeparatedByString:@"\\033["]; + NSArray* parts = [self componentsSeparatedByString:@"\033["]; [result appendAttributedString:[[[NSAttributedString alloc] - initWithString:parts.firstObject - attributes:nil] autorelease]]; + initWithString:parts.firstObject + attributes:nil] autorelease]]; for (NSString* part in [parts subarrayWithRange:NSMakeRange(1, parts.count - 1)]) { if (part.length == 0)