fixed Issue #19 by changing messagePattern

This commit is contained in:
Andrin Fassbind 2022-04-14 12:11:03 +02:00
parent 7c68472859
commit b47d98b960
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class ClientConnectionHandler implements Runnable {
public static final String USER_NONE = "";
public static final String USER_ALL = "*";
private final Pattern messagePattern = Pattern.compile( "^(?:@(\\w*))?\\s*(.*)$" );
private final Pattern messagePattern = Pattern.compile( "^(?:@(\\S*))?\\s*(.*)$" );
private SimpleStringProperty userName;
private SimpleObjectProperty<State> state;
@ -63,7 +63,6 @@ public class ClientConnectionHandler implements Runnable {
public void setState (State newState) {
state.set(newState);
}
public void run () {