diff --git a/src/nodes/from_str.rs b/src/nodes/from_str.rs index ba94dfa..f07f99f 100644 --- a/src/nodes/from_str.rs +++ b/src/nodes/from_str.rs @@ -22,7 +22,7 @@ impl TryFrom for Operator { fn try_from(value: char) -> Result { match value { '+' => Ok(Self::Plus), - '-' => Ok(Self::Minus), + '-' | '−' => Ok(Self::Minus), '*' | '×' => Ok(Self::Mult), '/' | '÷' => Ok(Self::Div), '^' => Ok(Self::Exp),