We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc66b92 commit 8c7b7ddCopy full SHA for 8c7b7dd
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