File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ def emit_util_mod(f):
221
221
#[inline]
222
222
fn is_alphabetic(c: char) -> bool {
223
223
match c {
224
- 'a' ... 'z' | 'A' ... 'Z' => true,
224
+ 'a' ...\= 'z' | 'A' ..= 'Z' => true,
225
225
c if c > '\x7f ' => super::derived_property::Alphabetic(c),
226
226
_ => false,
227
227
}
@@ -230,7 +230,7 @@ def emit_util_mod(f):
230
230
#[inline]
231
231
fn is_numeric(c: char) -> bool {
232
232
match c {
233
- '0' ... '9' => true,
233
+ '0' ..= '9' => true,
234
234
c if c > '\x7f ' => super::general_category::N(c),
235
235
_ => false,
236
236
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub mod util {
30
30
#[ inline]
31
31
fn is_alphabetic ( c : char ) -> bool {
32
32
match c {
33
- 'a' ... 'z' | 'A' ... 'Z' => true ,
33
+ 'a' ..= 'z' | 'A' ..= 'Z' => true ,
34
34
c if c > '' => super :: derived_property:: Alphabetic ( c) ,
35
35
_ => false ,
36
36
}
@@ -39,7 +39,7 @@ pub mod util {
39
39
#[ inline]
40
40
fn is_numeric ( c : char ) -> bool {
41
41
match c {
42
- '0' ... '9' => true ,
42
+ '0' ..= '9' => true ,
43
43
c if c > '' => super :: general_category:: N ( c) ,
44
44
_ => false ,
45
45
}
You can’t perform that action at this time.
0 commit comments