Open nyurik opened 1 month ago
It's an exact string match. These functions call Rust functions for these jobs, passing them the pat
parameter string as-is:
https://github.com/casey/just/blob/d3d0dbef7df9c9a2e6be1c57114e526ff0d42985/src/function.rs#L429-L435 https://github.com/casey/just/blob/d3d0dbef7df9c9a2e6be1c57114e526ff0d42985/src/function.rs#L441-L447
String manipulation contains this section which is not very clear. Does
pat
refer to an exact string match, e.g. removingtrim_end_match("foobar", "bar")
would result in"foo"
, or does it support some pattern matching (as the variable name would imply)? I tried it with regex, but it seems like it is not working.