mirror of
https://github.com/nushell/nushell.git
synced 2025-08-12 07:19:12 +02:00
Add ends-with operator and fix dataframe operator behavior (#5395)
* add ends-with operator * escape needles in dataframe operator regex patterns
This commit is contained in:
@ -35,6 +35,7 @@ impl Expression {
|
||||
Operator::NotRegexMatch
|
||||
| Operator::RegexMatch
|
||||
| Operator::StartsWith
|
||||
| Operator::EndsWith
|
||||
| Operator::LessThan
|
||||
| Operator::LessThanOrEqual
|
||||
| Operator::GreaterThan
|
||||
|
@ -24,6 +24,7 @@ pub enum Operator {
|
||||
Or,
|
||||
Pow,
|
||||
StartsWith,
|
||||
EndsWith,
|
||||
}
|
||||
|
||||
impl Display for Operator {
|
||||
@ -48,6 +49,7 @@ impl Display for Operator {
|
||||
Operator::LessThanOrEqual => write!(f, "<="),
|
||||
Operator::GreaterThanOrEqual => write!(f, ">="),
|
||||
Operator::StartsWith => write!(f, "starts-with"),
|
||||
Operator::EndsWith => write!(f, "ends-with"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user