Find with regex flag (#4649)

* split find functions

* find command with regex

* corrected message

* cargo fmt
This commit is contained in:
Fernando Herrera
2022-02-26 09:19:19 +00:00
committed by GitHub
parent 3eca43c0bb
commit 11bc056576
2 changed files with 199 additions and 112 deletions

View File

@ -171,6 +171,7 @@ impl Clone for Value {
}
impl Value {
/// Converts into string values that can be changed into string natively
pub fn as_string(&self) -> Result<String, ShellError> {
match self {
Value::Int { val, .. } => Ok(val.to_string()),