From f7e3e73df434f5251540b077fef6cd1ea43a8440 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Tue, 1 Jun 2021 10:17:44 -0700 Subject: [PATCH] Update codespell_lib/_codespell.py Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- codespell_lib/_codespell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index f6e8580174..d0b43ee2eb 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -32,7 +32,7 @@ # While we want to treat characters like ( or " as okay for a starting break, # these may occur unescaped in URIs, and so we are more restrictive on the # endpoint. Emails are more restrictive, so the endpoint remains flexible. -uri_regex_def = (u"(\\b(?:https?|t?ftp|file|git|smb)://[^\\s]+(?=$|\\s)|" +uri_regex_def = (u"(\\b(?:https?|[ts]?ftp|file|git|smb)://[^\\s]+(?=$|\\s)|" u"\\b[\\w.%+-]+@[\\w.-]+\\b)") encodings = ('utf-8', 'iso-8859-1') USAGE = """