Allow usernames consisting of short words to be recognized
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 10:42:17 +0000 (12:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 10:42:17 +0000 (12:42 +0200)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php

index 70074af8ff08630b256938e6d028c06fe4f43ce7..8ea4f1024ead66bc3c9dcb0cba46cd604e7ab791 100644 (file)
@@ -68,7 +68,7 @@ class HtmlInputNodeTextParser {
                \\B                                             # any non-word character, whitespace, string start is fine
                @
                (
-                       ([^',\s][^,\s]{2,})(?:\s[^@,\s][^,\s]*)?        # either at most two strings,
+                       ([^',\s][^,\s]{1,})(?:\s[^@,\s][^,\s]*)?        # either at most two strings,
                                                                        # not containing the whitespace or the comma,
                                                                        # not starting with a single quote
                                                                        # the second string not starting with the at sign