From 2a66a96de373eb7f873830c2297902f9b33ce838 Mon Sep 17 00:00:00 2001 From: c43721 <55610086+c43721@users.noreply.github.com> Date: Thu, 7 Nov 2024 12:00:03 -0600 Subject: [PATCH] feat: dont underscore numbers when formatting module names --- src/html/usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/usage.rs b/src/html/usage.rs index 3351c3cd..688949de 100644 --- a/src/html/usage.rs +++ b/src/html/usage.rs @@ -8,7 +8,7 @@ use regex::Regex; use serde::Serialize; lazy_static! { - static ref IDENTIFIER_RE: Regex = Regex::new(r"[^a-zA-Z$_]").unwrap(); + static ref IDENTIFIER_RE: Regex = Regex::new(r"[^a-zA-Z1-9$_]").unwrap(); } fn render_css_for_usage(name: &str) -> String {