We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da0b9b6 + 8c7b7dd commit 8513e78Copy full SHA for 8513e78
src/librustdoc/passes/bare_urls.rs
@@ -16,7 +16,7 @@ crate const CHECK_BARE_URLS: Pass = Pass {
16
description: "detects URLs that are not hyperlinks",
17
};
18
19
-const URL_REGEX: SyncLazy<Regex> = SyncLazy::new(|| {
+static URL_REGEX: SyncLazy<Regex> = SyncLazy::new(|| {
20
Regex::new(concat!(
21
r"https?://", // url scheme
22
r"([-a-zA-Z0-9@:%._\+~#=]{2,256}\.)+", // one or more subdomains
0 commit comments