Skip to content

Commit

Permalink
feat: dont underscore numbers when formatting module names
Browse files Browse the repository at this point in the history
  • Loading branch information
c43721 committed Nov 8, 2024
1 parent 473fd6a commit 76fd786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html/usage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::Serialize;
use std::borrow::Cow;

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 {
Expand Down

0 comments on commit 76fd786

Please sign in to comment.