mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parent
1383771423
commit
1b9d514275
@ -1998,7 +1998,7 @@ pub fn (mut re RE) match_base(in_txt byteptr, in_txt_len int ) (int,int) {
|
||||
}
|
||||
|
||||
// check if we must continue or pass to the next IST
|
||||
if next_check_flag == true {
|
||||
if next_check_flag == true && re.prog[state.pc+1].ist != ist_prog_end {
|
||||
//println("save the state!!")
|
||||
re.state_list << StateObj {
|
||||
group_index: state.group_index
|
||||
|
@ -141,6 +141,7 @@ match_test_suite = [
|
||||
|
||||
// particular groups
|
||||
TestItem{"ababababac", r"ab(.*)(ac)",0,10},
|
||||
|
||||
]
|
||||
)
|
||||
|
||||
@ -256,6 +257,18 @@ find_all_test_suite = [
|
||||
r"[Tt]o\w+",
|
||||
[0, 5, 24, 32],
|
||||
['Today', 'tomorrow']
|
||||
},
|
||||
Test_find_all{
|
||||
"pera\nurl = https://github.com/dario/pig.html\npippo",
|
||||
r"url *= *https?://[\w./]+",
|
||||
[5, 44],
|
||||
['url = https://github.com/dario/pig.html']
|
||||
},
|
||||
Test_find_all{
|
||||
"pera\nurl = https://github.com/dario/pig.html\npippo",
|
||||
r"url *= *https?://.*"+'\n',
|
||||
[5, 45],
|
||||
['url = https://github.com/dario/pig.html\n']
|
||||
}
|
||||
]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user