Skip to content

Commit 76fd786

Browse files
committed
feat: dont underscore numbers when formatting module names
1 parent 473fd6a commit 76fd786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html/usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use serde::Serialize;
1010
use std::borrow::Cow;
1111

1212
lazy_static! {
13-
static ref IDENTIFIER_RE: Regex = Regex::new(r"[^a-zA-Z$_]").unwrap();
13+
static ref IDENTIFIER_RE: Regex = Regex::new(r"[^a-zA-Z1-9$_]").unwrap();
1414
}
1515

1616
fn render_css_for_usage(name: &str) -> String {

0 commit comments

Comments
 (0)