mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: remove redundant parenthesis in the complex infix expr (#17873)
This commit is contained in:
@ -1982,7 +1982,7 @@ pub fn (mut re RE) match_base(in_txt &u8, in_txt_len int) (int, int) {
|
||||
// check if stop
|
||||
else if m_state == .stop {
|
||||
// we are in search mode, don't exit until the end
|
||||
if ((re.flag & regex.f_src) != 0) && (ist != regex.ist_prog_end) {
|
||||
if (re.flag & regex.f_src) != 0 && ist != regex.ist_prog_end {
|
||||
last_fnd_pc = state.pc
|
||||
state.pc = -1
|
||||
state.i += char_len
|
||||
|
@ -691,7 +691,7 @@ fn test_regex_func() {
|
||||
mut re, re_err, err_pos := regex.regex_base(query)
|
||||
if re_err == regex.compile_ok {
|
||||
start, end := re.match_string(test_str)
|
||||
assert (start == 0) && (end == 6)
|
||||
assert start == 0 && end == 6
|
||||
} else {
|
||||
eprintln('Error in query string in pos ${err_pos}')
|
||||
eprintln('Error: ${re.get_parse_error_string(re_err)}')
|
||||
|
Reference in New Issue
Block a user