mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
17 lines
308 B
Rust
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("")?,
|
|
})
|
|
}
|
|
}
|