Regard digits as an upper case character
This commit is contained in:
parent
8069efbe10
commit
1928ae78a2
1 changed files with 2 additions and 1 deletions
|
|
@ -597,7 +597,8 @@ impl Ord for UseSegment {
|
|||
use self::UseSegment::*;
|
||||
|
||||
fn is_upper_snake_case(s: &str) -> bool {
|
||||
s.chars().all(|c| c.is_uppercase() || c == '_')
|
||||
s.chars()
|
||||
.all(|c| c.is_uppercase() || c == '_' || c.is_numeric())
|
||||
}
|
||||
|
||||
match (self, other) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue