Skip to content

Commit 2a66a96

Browse files
authored
feat: dont underscore numbers when formatting module names
1 parent f26eb97 commit 2a66a96

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
@@ -8,7 +8,7 @@ use regex::Regex;
88
use serde::Serialize;
99

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

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

0 commit comments

Comments
 (0)