We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64136a6 commit 7450502Copy full SHA for 7450502
markdown-renderer/src/lib.rs
@@ -271,7 +271,8 @@ mod test {
271
let mut counter = 0;
272
273
// Replace all glyph IDs with normalized ones
274
- let id_regex = regex::Regex::new(r#"(id|xlink:href)="(#?)g[A-F0-9]{32}""#).unwrap();
+ // IDs can have variable length hex strings (typically 31-32 chars)
275
+ let id_regex = regex::Regex::new(r#"(id|xlink:href)="(#?)g[A-F0-9]+""#).unwrap();
276
277
id_regex
278
.replace_all(html, |caps: ®ex::Captures| {
0 commit comments