forked from Rust-related/RustPython
Merge pull request #3211 from tony-jinwoo-ahn/range
Modify range in sre.rs
This commit is contained in:
@@ -349,7 +349,7 @@ mod _sre {
|
||||
let m = Match::new(&state, zelf.clone(), split_args.string.clone());
|
||||
|
||||
// add groups (if any)
|
||||
for i in 1..zelf.groups + 1 {
|
||||
for i in 1..=zelf.groups {
|
||||
splitlist.push(
|
||||
m.get_slice(i, state.string, vm)
|
||||
.unwrap_or_else(|| vm.ctx.none()),
|
||||
|
||||
Reference in New Issue
Block a user