File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/main/java/ink/glowing/text/replace/standard Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Add to dependencies
4444<dependency >
4545 <groupId >ink.glowing</groupId >
4646 <artifactId >inkymessage</artifactId >
47- <version >0.6.3 </version > <!-- Check the version above -->
47+ <version >0.7.0 </version > <!-- Check the version above -->
4848</dependency >
4949```
5050### Gradle
@@ -56,6 +56,6 @@ repositories {
5656}
5757
5858dependencies {
59- implementation(" ink.glowing:inkymessage:0.6.3 " ) // Check the version above
59+ implementation(" ink.glowing:inkymessage:0.7.0 " ) // Check the version above
6060}
6161```
Original file line number Diff line number Diff line change 66
77 <groupId >ink.glowing</groupId >
88 <artifactId >inkymessage</artifactId >
9- <version >0.7.0-SNAPSHOT </version >
9+ <version >0.7.0</version >
1010
1111 <properties >
1212 <adventure .version>4.13.1</adventure .version>
Original file line number Diff line number Diff line change 33import ink .glowing .text .replace .Replacer ;
44import ink .glowing .text .rich .RichNode ;
55import ink .glowing .text .style .tag .StyleTag ;
6- import ink .glowing .text .style .tag .standard .ClickTag ;
76import ink .glowing .text .utils .function .InstanceProvider ;
87import org .jetbrains .annotations .NotNull ;
98
109import java .util .List ;
1110import java .util .regex .Pattern ;
1211
1312import static ink .glowing .text .rich .RichNode .literalNode ;
13+ import static ink .glowing .text .style .tag .standard .ClickTag .clickTag ;
1414
1515public final class UrlReplacer implements Replacer .Regex {
1616 private static final Pattern SIMPLE_URL = Pattern .compile ("[hH][tT]{2}[pP][sS]?://\\ S+?\\ .\\ S+?(?:(?=[\\ s)(\\ ]\\ [.,!?])|\\ S$)" );
@@ -28,7 +28,7 @@ public final class UrlReplacer implements Replacer.Regex {
2828 public @ NotNull RichNode replace (@ NotNull String found ) {
2929 return literalNode (
3030 found ,
31- List .of (new StyleTag .Prepared (ClickTag . clickTag (), "url" , found ))
31+ List .of (new StyleTag .Prepared (clickTag (), "url" , found ))
3232 );
3333 }
3434
You can’t perform that action at this time.
0 commit comments