Fix tab completion bug with message and ignore commands.

Update url regex pattern to include ';' and ','
This commit is contained in:
Aust1n46 2022-01-23 21:44:32 -06:00
parent 2fd8fdbb4a
commit 703edb5b6b
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>mineverse.Aust1n46.chat</groupId> <groupId>mineverse.Aust1n46.chat</groupId>
<artifactId>VentureChat</artifactId> <artifactId>VentureChat</artifactId>
<version>3.3.0</version> <version>3.3.1</version>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url> <url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
<scm> <scm>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url> <url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>

View File

@ -101,6 +101,6 @@ public class Ignore extends Command {
Collections.sort(completions); Collections.sort(completions);
return completions; return completions;
} }
return null; return super.tabComplete(sender, label, args);
} }
} }

View File

@ -154,7 +154,7 @@ public class Message extends Command {
Collections.sort(completions); Collections.sort(completions);
return completions; return completions;
} }
return null; return super.tabComplete(sender, label, args);
} }
private void sendBungeeCordMessage(MineverseChatPlayer mcp, String command, String[] args) { private void sendBungeeCordMessage(MineverseChatPlayer mcp, String command, String[] args) {

View File

@ -160,7 +160,7 @@ public class Format {
do { do {
Pattern pattern = Pattern.compile( Pattern pattern = Pattern.compile(
"([a-zA-Z0-9" + BUKKIT_COLOR_CODE_PREFIX + "\\-:/]+\\.[a-zA-Z/0-9" + BUKKIT_COLOR_CODE_PREFIX "([a-zA-Z0-9" + BUKKIT_COLOR_CODE_PREFIX + "\\-:/]+\\.[a-zA-Z/0-9" + BUKKIT_COLOR_CODE_PREFIX
+ "\\-:_#]+(\\.[a-zA-Z/0-9." + BUKKIT_COLOR_CODE_PREFIX + "\\-:#\\?\\+=_]+)?)"); + "\\-:_#]+(\\.[a-zA-Z/0-9." + BUKKIT_COLOR_CODE_PREFIX + "\\-:;,#\\?\\+=_]+)?)");
Matcher matcher = pattern.matcher(remaining); Matcher matcher = pattern.matcher(remaining);
if (matcher.find()) { if (matcher.find()) {
indexLink = matcher.start(); indexLink = matcher.start();