Skip to content

Commit 3644e18

Browse files
Allow multiple spaces before codespell:ignore (#3653)
1 parent 81e33ab commit 3644e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codespell_lib/_codespell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
uri_regex_def = (
6161
r"(\b(?:https?|[ts]?ftp|file|git|smb)://[^\s]+(?=$|\s)|\b[\w.%+-]+@[\w.-]+\b)"
6262
)
63-
inline_ignore_regex = re.compile(r"[^\w\s]\s?codespell:ignore\b(\s+(?P<words>[\w,]*))?")
63+
inline_ignore_regex = re.compile(r"[^\w\s]\s*codespell:ignore\b(\s+(?P<words>[\w,]*))?")
6464
USAGE = """
6565
\t%prog [OPTIONS] [file1 file2 ... fileN]
6666
"""

0 commit comments

Comments
 (0)