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 Jul 30, 2024
1 parent 77a8dff commit 20d7288
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;
#[cfg(feature = "dtype-struct")]
use smartstring::alias::String as SmartString;
Expand Down Expand Up @@ -50,6 +51,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 20d7288

Please sign in to comment.