deadlink icon indicating copy to clipboard operation
deadlink copied to clipboard

Links with parens

Open zmoon opened this issue 2 years ago • 1 comments

Common in Wikipedia links.

Example: From https://en.wikipedia.org/wiki/Join_(SQL) link is recognized as https://en.wikipedia.org/wiki/Join_.

zmoon avatar Jul 21 '22 19:07 zmoon

Maybe as additional info for @nschloe:

The regular expression in _main.py https://github.com/nschloe/deadlink/blob/a86802242e0cd12ccdb346c80863d0f2545f6d42/src/deadlink/_main.py#L19-L21 could be extended by parantheses by just adding them after the last =. While the function in _get_urls_from_file() at https://github.com/nschloe/deadlink/blob/a86802242e0cd12ccdb346c80863d0f2545f6d42/src/deadlink/_main.py#L26-L32 correctly finds links with parantheses when doing so, the links break along the way when using deadlink to check for links with parens.

grndng avatar Jan 13 '23 13:01 grndng