mirror of https://github.com/rm-dr/daisy
Fixed variable name check
parent
999f24ce52
commit
dd0f4387b6
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue