Commit 2c3f307e78b6c9a10260612672c4dabf8f36ba93
1 parent
2b090369
no message
Showing
1 changed file
with
4 additions
and
0 deletions
CNLiveBusinessTools/Classes/CNLiveBusinessTools.m
| ... | ... | @@ -695,6 +695,10 @@ |
| 695 | 695 | return attStr; |
| 696 | 696 | } |
| 697 | 697 | |
| 698 | +////static NSString *const kUserPattern = @"\\@\\w+"; // "@用户名"过滤 | |
| 699 | +////static NSString *const kTopicPattern = @"\\#\\w+\\#"; // "##"微博话题过滤 | |
| 700 | +////static NSString *const kEmotionPattern = @"\\[\\w+\\]"; // "[]"表情字段过滤 | |
| 701 | +//static NSString *const kUrlPattern = @"(((ht|f)tp(s?))\\://)?(www.|[a-zA-Z].)[a-zA-Z0-9\\-\\.]+\\.(com|edu|gov|mil|net|org|biz|info|name|museum|us|ca|uk)(\\:[0-9]+)*(/($|[a-zA-Z0-9\\.\\,\\;\\?\\'\\\\\\+&%\\$#\\=~_\\-]+))*"; // URL 过滤 | |
| 698 | 702 | + (NSMutableAttributedString *)replaceNativeQQemojiWithCustomText:(NSString *)text |
| 699 | 703 | { |
| 700 | 704 | if (text == nil || [text isEqualToString:@""]) return [[NSMutableAttributedString alloc] initWithString:@""]; | ... | ... |