Skip to content

Commit

Permalink
Merge pull request #53 from molon/molon
Browse files Browse the repository at this point in the history
1.10.1
  • Loading branch information
molon committed Aug 16, 2016
2 parents 1edfb53 + 5e2a267 commit d9a841c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Classes/Category/NSAttributedString+MLLabel.m
Expand Up @@ -55,8 +55,7 @@ - (NSAttributedString*)linkAttributedStringWithLinkRegex:(NSRegularExpression*)l
//遍历结果,找到结果中被()包裹的区域作为显示内容
NSUInteger location = 0;
for (NSTextCheckingResult *result in results) {
NSInteger rangeCount = [result numberOfRanges];
NSAssert(rangeCount>1&&rangeCount>groupIndexForDisplay&&rangeCount>groupIndexForValue, @"Please ensure that group sign `()` in the linkRegex is correct!");
NSAssert([result numberOfRanges]>1&&[result numberOfRanges]>groupIndexForDisplay&&[result numberOfRanges]>groupIndexForValue, @"Please ensure that group sign `()` in the linkRegex is correct!");
NSRange range = [result rangeAtIndex:0];

//把前面的非匹配出来的区域加进来
Expand Down
2 changes: 1 addition & 1 deletion MLLabel.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MLLabel"
s.version = "1.10.0"
s.version = "1.10.1"
s.summary = "UILabel with TextKit. support Link and Expression. (iOS 7+)"

s.homepage = 'https://github.com/molon/MLLabel'
Expand Down

0 comments on commit d9a841c

Please sign in to comment.