Skip to content

Commit

Permalink
Merge branch 'main' into xzhseh/feat-fancy-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhseh authored Sep 15, 2023
2 parents b733561 + 41ebb2a commit 6c6d471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expr/src/vector_op/regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ fn regexp_count_start0(text: &str, regex: &RegexpContext) -> Result<i32> {
fn regexp_count(text: &str, start: i32, regex: &RegexpContext) -> Result<i32> {
// 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(),
Expand Down Expand Up @@ -267,7 +267,7 @@ fn regexp_replace(
) -> Result<Box<str>> {
// The start position to begin the search
let start = match start {
..0 => {
..=0 => {
return Err(ExprError::InvalidParam {
name: "start",
reason: start.to_string().into(),
Expand Down

0 comments on commit 6c6d471

Please sign in to comment.