Ignore question and exclamation marks at the end of links, too
[Sone.git] / src / main / java / net / pterodactylus / sone / text / SoneTextParser.java
index 81ac751..bd389e1 100644 (file)
@@ -322,7 +322,7 @@ public class SoneTextParser implements Parser<SoneTextParserContext> {
        }
 
        private static boolean isPunctuation(char character) {
-               return (character == '.') || (character == ',');
+               return (character == '.') || (character == ',') || (character == '!') || (character == '?');
        }
 
        private static class NextLink {