nushell/crates/nu_plugin_match/src/match_.rs
2020-02-10 15:32:10 -05:00

17 lines
308 B
Rust

use regex::Regex;
pub struct Match {
pub column: String,
pub regex: Regex,
}
impl Match {
#[allow(clippy::trivial_regex)]
pub fn new() -> Result<Self, Box<dyn std::error::Error>> {
Ok(Match {
column: String::new(),
regex: Regex::new("")?,
})
}
}