Skip to content

Commit

Permalink
perf: improve comment symbol prefix parttern, match multiple symbol, …
Browse files Browse the repository at this point in the history
…like ///
  • Loading branch information
tisfeng committed Dec 2, 2023
1 parent 71ff391 commit 83cab8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "NSString+EZSplit.h"
#import "EZAppleService.h"

static NSString *const kCommentSymbolPrefixPattern = @"^\\s*(//|#|\\*)";
static NSString *const kCommentSymbolPrefixPattern = @"^\\s*(//+|#+|\\*+)";

@implementation NSString (EZHandleInputText)

Expand Down

0 comments on commit 83cab8c

Please sign in to comment.