File tree Expand file tree Collapse file tree
datafusion/functions/src/regex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ fn _regexp_replace_static_pattern_replace<T: OffsetSizeTrait>(
505505 if let Some ( val) = val {
506506 if short_re. captures_read ( & mut locs, val) . is_some ( ) {
507507 let match_end = locs. get ( 0 ) . unwrap ( ) . 1 ;
508- if memchr ( b'\n' , val[ match_end..] . as_bytes ( ) ) . is_none ( ) {
508+ if memchr ( b'\n' , & val. as_bytes ( ) [ match_end..] ) . is_none ( ) {
509509 if let Some ( ( start, end) ) = locs. get ( 1 ) {
510510 vals. append_slice ( & val. as_bytes ( ) [ start..end] ) ;
511511 }
@@ -550,7 +550,7 @@ fn _regexp_replace_static_pattern_replace<T: OffsetSizeTrait>(
550550 if let Some ( val) = val {
551551 if short_re. captures_read ( & mut locs, val) . is_some ( ) {
552552 let match_end = locs. get ( 0 ) . unwrap ( ) . 1 ;
553- if memchr ( b'\n' , val[ match_end..] . as_bytes ( ) ) . is_none ( ) {
553+ if memchr ( b'\n' , & val. as_bytes ( ) [ match_end..] ) . is_none ( ) {
554554 if let Some ( ( start, end) ) = locs. get ( 1 ) {
555555 builder. append_value ( & val[ start..end] ) ;
556556 } else {
You can’t perform that action at this time.
0 commit comments