Skip to content

Commit 0840ace

Browse files
bors[bot]nickray
andcommitted
Merge #377
377: Sanitize names from dashes r=therealprof a=nickray Example: "normally or power-up" gave "NORMALLYORPOWER-UP" which doesn't work. Co-authored-by: Nicolas Stalder <[email protected]>
2 parents c3bcc1f + 2061b84 commit 0840ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub const BITS_PER_BYTE: u32 = 8;
1111

1212
/// List of chars that some vendors use in their peripheral/field names but
1313
/// that are not valid in Rust ident
14-
const BLACKLIST_CHARS: &[char] = &['(', ')', '[', ']', '/', ' '];
14+
const BLACKLIST_CHARS: &[char] = &['(', ')', '[', ']', '/', ' ', '-'];
1515

1616
#[derive(Clone, Copy, PartialEq)]
1717
pub enum Target {

0 commit comments

Comments
 (0)