Skip to content

Commit

Permalink
regex feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Nov 3, 2024
1 parent 0c48b8d commit de1744b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/polars-plan/src/dsl/name.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "regex")]
use regex::Regex;
use polars_utils::format_pl_smallstr;
#[cfg(feature = "dtype-struct")]
Expand Down Expand Up @@ -51,6 +52,7 @@ impl ExprNameNameSpace {
}

/// Replace matching string pattern in the root column name with a new value.
#[cfg(feature = "regex")]
pub fn replace(self, pattern: &str, value: &str, literal: bool) -> Expr {
let value = value.to_string();
let pattern = pattern.to_string();
Expand Down

0 comments on commit de1744b

Please sign in to comment.