Skip to content

Commit

Permalink
Fixed welcome message pattern (closes #3).
Browse files Browse the repository at this point in the history
  • Loading branch information
Taronyu committed Feb 26, 2017
1 parent a199d5b commit 3fef23d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.rwth-aachen.afu</groupId>
<artifactId>dapnet-proxy</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<packaging>jar</packaging>
<name>DAPNET Proxy</name>
<organization>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class WelcomeMessageEncoder extends MessageToMessageEncoder<String> {

private static final Pattern welcomePattern = Pattern.compile("\\[([/\\p{Alnum}]+) v(\\d[\\d\\.]+[\\p{Graph}]*)]");
private static final Pattern welcomePattern = Pattern.compile("\\[([/\\p{Alnum}]+) v?(\\d[\\d\\.]+[\\p{Graph}]*)]");
private final String authName;
private final String authKey;

Expand Down

0 comments on commit 3fef23d

Please sign in to comment.