mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Fix tab completion bug with message and ignore commands.
Update url regex pattern to include ';' and ','
This commit is contained in:
parent
2fd8fdbb4a
commit
703edb5b6b
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>mineverse.Aust1n46.chat</groupId>
|
||||
<artifactId>VentureChat</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<version>3.3.1</version>
|
||||
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
|
||||
<scm>
|
||||
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
|
||||
|
@ -101,6 +101,6 @@ public class Ignore extends Command {
|
||||
Collections.sort(completions);
|
||||
return completions;
|
||||
}
|
||||
return null;
|
||||
return super.tabComplete(sender, label, args);
|
||||
}
|
||||
}
|
||||
|
@ -154,7 +154,7 @@ public class Message extends Command {
|
||||
Collections.sort(completions);
|
||||
return completions;
|
||||
}
|
||||
return null;
|
||||
return super.tabComplete(sender, label, args);
|
||||
}
|
||||
|
||||
private void sendBungeeCordMessage(MineverseChatPlayer mcp, String command, String[] args) {
|
||||
|
@ -160,7 +160,7 @@ public class Format {
|
||||
do {
|
||||
Pattern pattern = Pattern.compile(
|
||||
"([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);
|
||||
if (matcher.find()) {
|
||||
indexLink = matcher.start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user