Merge branch 'ignore-uris' of https://github.com/jonmeow/codespell into ignore-uris
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index e5e59fd..59dab61 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 = """