Skip to content

Commit 9b4125c

Browse files
committed
Changed header pattern
1 parent a8cf433 commit 9b4125c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ android {
2929

3030
defaultConfig {
3131
minSdkVersion 16
32-
targetSdkVersion 25
32+
targetSdkVersion 26
3333
versionCode 1
3434
versionName "1.0"
3535
}
@@ -73,4 +73,4 @@ task sourcesJar(type: Jar) {
7373

7474
artifacts {
7575
archives sourcesJar
76-
}
76+
}

lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class StompMessage {
1717

1818
public static final String TERMINATE_MESSAGE_SYMBOL = "\u0000";
1919

20-
private static final Pattern PATTERN_HEADER = Pattern.compile("([^:\\s]+)\\s*:\\s*([^:\\s]+)");
20+
private static final Pattern PATTERN_HEADER = Pattern.compile("([^:\\s]+)\\s*:\\s*([^\\n]+)");
2121

2222
private final String mStompCommand;
2323
private final List<StompHeader> mStompHeaders;

0 commit comments

Comments
 (0)