Fixed variable name check

pull/2/head
Mark 2023-08-03 22:05:46 -07:00
parent 999f24ce52
commit dd0f4387b6
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,8 @@ impl Context {
if { if {
Function::from_string(s).is_some() || Function::from_string(s).is_some() ||
Constant::from_string(s).is_some() Constant::from_string(s).is_some() ||
freeunit_from_string(s).is_some()
} { return false } } { return false }
for c in s.to_lowercase().chars() { for c in s.to_lowercase().chars() {

View File

@ -23,6 +23,7 @@ mod unit;
pub use crate::quantity::unit::Unit; pub use crate::quantity::unit::Unit;
pub use crate::quantity::unit::FreeUnit; pub use crate::quantity::unit::FreeUnit;
pub use crate::quantity::unit::WholeUnit; pub use crate::quantity::unit::WholeUnit;
pub use crate::quantity::unit::freeunit_from_string;
mod quantity; mod quantity;
pub use crate::quantity::quantity::Quantity; pub use crate::quantity::quantity::Quantity;