Skip to content

Commit 8791ea0

Browse files
accomodate urls again
1 parent 0ba4577 commit 8791ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/test/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def expand_errors(input: list[str], output: list[str], fnam: str) -> None:
547547
# The first in the split things isn't a comment
548548
for possible_err_comment in re.split(r"(?!\\)#\s*(?=[ENW]\s*:)", input[i])[1:]:
549549
m = re.search(
550-
r"^([ENW])\s*:(\s*(?P<col>\d+)\s*:)?(?P<message>(?:\\#|[^#])*)$",
550+
r"^([ENW])\s*:(\s*(?P<col>\d+)\s*:)?(?P<message>(?:\\#|[^#]|\S#)*)$",
551551
possible_err_comment.strip(),
552552
)
553553
if m:

0 commit comments

Comments
 (0)