fixed Issue #19 by changing messagePattern
This commit is contained in:
@@ -28,7 +28,7 @@ public class ClientConnectionHandler implements Runnable {
|
|||||||
public static final String USER_NONE = "";
|
public static final String USER_NONE = "";
|
||||||
public static final String USER_ALL = "*";
|
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 SimpleStringProperty userName;
|
||||||
private SimpleObjectProperty<State> state;
|
private SimpleObjectProperty<State> state;
|
||||||
@@ -63,7 +63,6 @@ public class ClientConnectionHandler implements Runnable {
|
|||||||
|
|
||||||
public void setState (State newState) {
|
public void setState (State newState) {
|
||||||
state.set(newState);
|
state.set(newState);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run () {
|
public void run () {
|
||||||
|
|||||||
Reference in New Issue
Block a user