Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KILabel/Source/KILabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ - (NSArray *)getRangesForHashtags:(NSString *)text
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSError *error = nil;
regex = [[NSRegularExpression alloc] initWithPattern:@"(?<!\\w)#([\\w\\_]+)?" options:0 error:&error];
regex = [[NSRegularExpression alloc] initWithPattern:@"((#)([\\w\\_]+)?)" options:0 error:&error];
});

// Run the expression and get matches
Expand Down