Skip to content

Commit

Permalink
Merge pull request #1549 from ehuss/std-link-comma
Browse files Browse the repository at this point in the history
Fix std-links for generics with commas.
  • Loading branch information
traviscross committed Jul 30, 2024
2 parents 0fcf4ed + cbf6e18 commit d741116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdbook-spec/src/std_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use tempfile::TempDir;
/// the standard library using rustdoc's intra-doc notation.
const STD_LINK: &str = r"(?: [a-z]+@ )?
(?: std|core|alloc|proc_macro|test )
(?: ::[A-Za-z0-9_!:<>{}()\[\]]+ )?";
(?: ::[A-Za-z0-9_!,:<>{}()\[\]]+ )?";

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

0 comments on commit d741116

Please sign in to comment.