From b73356184779ed0873536d265752233d39befa37 Mon Sep 17 00:00:00 2001 From: Michael Xu Date: Thu, 14 Sep 2023 22:10:08 -0400 Subject: [PATCH] tiny fix --- src/expr/src/vector_op/regexp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr/src/vector_op/regexp.rs b/src/expr/src/vector_op/regexp.rs index cf607b09a109f..dbf70183d5d02 100644 --- a/src/expr/src/vector_op/regexp.rs +++ b/src/expr/src/vector_op/regexp.rs @@ -183,7 +183,7 @@ fn regexp_count_start0(text: &str, regex: &RegexpContext) -> Result { fn regexp_count(text: &str, start: i32, regex: &RegexpContext) -> Result { // First get the start position to count for let start = match start { - ..=0 => { + ..0 => { return Err(ExprError::InvalidParam { name: "start", reason: start.to_string().into(), @@ -267,7 +267,7 @@ fn regexp_replace( ) -> Result> { // The start position to begin the search let start = match start { - ..=0 => { + ..0 => { return Err(ExprError::InvalidParam { name: "start", reason: start.to_string().into(),