diff options
author | 2018-04-05 22:17:57 +0300 | |
---|---|---|
committer | 2018-04-05 22:17:57 +0300 | |
commit | 767aec7729a326ff1ccc225d8623a24dd1e698d5 (patch) | |
tree | c694fc17767170200888a3348acebed67afe5e06 /juick-server-jdbc/src/main/java/com | |
parent | 0cd08c7161fd3b5fe54d90b01ea35360ea5390dc (diff) |
server: markdown command reply
* also fixes new messages with one tag and attachment
Diffstat (limited to 'juick-server-jdbc/src/main/java/com')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java index 97627406..90b70612 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/TagServiceImpl.java @@ -51,7 +51,7 @@ import java.util.stream.Stream; @Repository public class TagServiceImpl extends BaseJdbcService implements TagService { private static final Pattern TAGS_PATTERN1 = Pattern.compile("^(?:(?:\\*[^ \\r\\n\\t]+)|\\s)+$"); - private static final Pattern TAGS_PATTERN2 = Pattern.compile("^\\*([^ \\r\\n\\t]+)\\s+([\\s\\S]+)"); + private static final Pattern TAGS_PATTERN2 = Pattern.compile("^\\*([^ \\r\\n\\t]+)[\\s+]?([\\s\\S]+)?"); private static final Pattern TAG_PATTERN = Pattern.compile("\\*([^ \\r\\n\\t]+)"); private final MessagesService messagesService; |