File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " glob"
4
- version = " 0.2.1 "
4
+ version = " 0.2.2 "
5
5
authors = [" The Rust Project Developers" ]
6
6
license = " MIT/Apache-2.0"
7
7
homepage = " https://github.com/rust-lang/glob"
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ impl Pattern {
497
497
}
498
498
'[' => {
499
499
500
- if i <= chars. len ( ) - 4 && chars[ i + 1 ] == '!' {
500
+ if i + 4 <= chars. len ( ) && chars[ i + 1 ] == '!' {
501
501
match chars[ i + 3 ..] . position_elem ( & ']' ) {
502
502
None => ( ) ,
503
503
Some ( j) => {
@@ -508,7 +508,7 @@ impl Pattern {
508
508
continue ;
509
509
}
510
510
}
511
- } else if i <= chars. len ( ) - 3 && chars[ i + 1 ] != '!' {
511
+ } else if i + 3 <= chars. len ( ) && chars[ i + 1 ] != '!' {
512
512
match chars[ i + 2 ..] . position_elem ( & ']' ) {
513
513
None => ( ) ,
514
514
Some ( j) => {
You can’t perform that action at this time.
0 commit comments