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 authored Nov 7, 2024
1 parent f26eb97 commit 2a66a96
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 @@ -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 {
Expand Down

0 comments on commit 2a66a96

Please sign in to comment.