Skip to content

Commit 60ea516

Browse files
committed
Release 0.7.0
1 parent 8dd6246 commit 60ea516

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

5858
dependencies {
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
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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>

src/main/java/ink/glowing/text/replace/standard/UrlReplacer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import ink.glowing.text.replace.Replacer;
44
import ink.glowing.text.rich.RichNode;
55
import ink.glowing.text.style.tag.StyleTag;
6-
import ink.glowing.text.style.tag.standard.ClickTag;
76
import ink.glowing.text.utils.function.InstanceProvider;
87
import org.jetbrains.annotations.NotNull;
98

109
import java.util.List;
1110
import java.util.regex.Pattern;
1211

1312
import static ink.glowing.text.rich.RichNode.literalNode;
13+
import static ink.glowing.text.style.tag.standard.ClickTag.clickTag;
1414

1515
public 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

0 commit comments

Comments
 (0)