From 93a5f9c22d7878d7b1a2b6b90b6f97f9f1e88a9c Mon Sep 17 00:00:00 2001 From: changsanjiang Date: Tue, 10 Apr 2018 13:28:52 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index 71bd250..fd04f10 100755 --- a/README.md +++ b/README.md @@ -22,14 +22,6 @@ pod 'SJAttributesStringMaker' ``` ___ -### 关于v1版本 - -```ruby - // 抱歉各位, 由于结构调整, `v1`和`v2`版本差距较大, 大家可以如下方式, 继续使用`v1`版本的. - pod 'SJAttributesFactory', '1.1.14' -``` -___ - ### regular expression From d3d8f3446edcc5888862b47e219d234431bbd256 Mon Sep 17 00:00:00 2001 From: changsanjiang Date: Tue, 10 Apr 2018 13:29:34 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fd04f10..bc24631 100755 --- a/README.md +++ b/README.md @@ -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]); }); });