We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d17721 commit 4d6ddcfCopy full SHA for 4d6ddcf
discord_markdown_ast_parser/lexer.py
@@ -16,7 +16,7 @@ def __repr__(self):
16
return f"{self.__class__.__name__}({self.regex and self.regex.pattern!r})"
17
18
19
-URL_REGEX = r"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)"
+URL_REGEX = r"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)"
20
21
22
class LexingRule(Lexing, Enum):
0 commit comments