Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang authored Apr 10, 2018
1 parent 93a5f9c commit d3d8f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ ___
sj_makeAttributesString(^(SJAttributeWorker * _Nonnull make) {
make.insert(@"@迷你世界联机 :@江叔 用小淘气耍赖野人#迷你世界#", 0);

make.regexp(@"[@][^\\s]+\\s", ^(SJAttributesRangeOperator * _Nonnull matched) {
make.regexp(@"@\\w+", ^(SJAttributesRangeOperator * _Nonnull matched) {
matched.textColor([UIColor purpleColor]);
});
make.regexp(@"[#][^#]+#", ^(SJAttributesRangeOperator * _Nonnull matched) {
make.regexp(@"#[^#]+#", ^(SJAttributesRangeOperator * _Nonnull matched) {
matched.textColor([UIColor orangeColor]);
});
});
Expand Down

0 comments on commit d3d8f34

Please sign in to comment.