Skip to content

Commit 032d05b

Browse files
committed
split lower/uppercase
1 parent 77c9640 commit 032d05b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

svd-rs/src/dimelement.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ impl DimElement {
153153
let mut end = end.bytes();
154154
match (start.next(), start.next(), end.next(), end.next()) {
155155
(Some(start), None, Some(end), None)
156-
if start.is_ascii_alphabetic() && end.is_ascii_alphabetic() =>
156+
if (start.is_ascii_lowercase() && end.is_ascii_lowercase())
157+
|| (start.is_ascii_uppercase() && end.is_ascii_uppercase()) =>
157158
{
158159
Some((start..=end).map(|c| char::from(c).to_string()).collect())
159160
}

0 commit comments

Comments
 (0)