From 9fd685ae13289ef7c85c7ff26572ef258f991d15 Mon Sep 17 00:00:00 2001 From: Eric Schramm Date: Sat, 24 Oct 2020 17:27:09 -0500 Subject: [PATCH] remove unnecessary position check --- NSAttributedString+Markdown.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NSAttributedString+Markdown.m b/NSAttributedString+Markdown.m index cb1d83d..6e31374 100644 --- a/NSAttributedString+Markdown.m +++ b/NSAttributedString+Markdown.m @@ -588,7 +588,7 @@ static void updateAttributedString(NSMutableAttributedString *result, NSString * checkCharacterRange = NSMakeRange(position, 1); } // verify character before bullet is either start of string or new line, otherwise could be a standard dash-space (e.g., "This - here - shouldn't create bullets") - if (position > 0 && ![[scanString substringWithRange:NSMakeRange(position, 1)] isEqualToString:@"\n"]) { + if (![[scanString substringWithRange:NSMakeRange(position, 1)] isEqualToString:@"\n"]) { // skip replaceMarkers = NO; break;