nushell/crates
Belhorma Bendebiche 8f9dd6516e Add =~ and !~ operators on strings
`left =~ right` return true if left contains right, using Rust's
`String::contains`. `!~` is the negated version.

A new `apply_operator` function is added which decouples evaluation from
`Value::compare`. This returns a `Value` and opens the door to
implementing `+` for example, though it wouldn't be useful immediately.

The `operator!` macro had to be changed slightly as it would choke on
`~` in arguments.
2019-12-02 11:02:57 -08:00
..
nu-errors Extract core stuff into own crates 2019-12-02 10:54:12 -08:00
nu-parser Add =~ and !~ operators on strings 2019-12-02 11:02:57 -08:00
nu-protocol Extract core stuff into own crates 2019-12-02 10:54:12 -08:00
nu-source Add =~ and !~ operators on strings 2019-12-02 11:02:57 -08:00
nu-textview Extract core stuff into own crates 2019-12-02 10:54:12 -08:00