Skip to main content

URL_IN_TEXT

Static URL_IN_TEXT 

Source
pub static URL_IN_TEXT: LazyLock<Regex>
Expand description

Greedy URL pattern for finding URLs in text for length calculation.

Pattern https?://\S+ matches until whitespace, which may include trailing punctuation. This is intentional for MD013 line length calculation where we replace URLs with fixed-length placeholders.

For precise URL extraction, use URL_STANDARD_REGEX instead.