Skip to content

Commit 4490abf

Browse files
committed
Fix std links that have digits in them.
1 parent f5722f5 commit 4490abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdbook-spec/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static ADMONITION_RE: Lazy<Regex> = Lazy::new(|| {
2525
/// the standard library using rustdoc's intra-doc notation.
2626
const STD_LINK: &str = r"(?: [a-z]+@ )?
2727
(?: std|core|alloc|proc_macro|test )
28-
(?: ::[A-Za-z_!:<>{}()\[\]]+ )?";
28+
(?: ::[A-Za-z0-9_!:<>{}()\[\]]+ )?";
2929

3030
/// The Regex for a markdown link that might be a link to the standard library.
3131
static STD_LINK_RE: Lazy<Regex> = Lazy::new(|| {

0 commit comments

Comments
 (0)