mirror of
https://github.com/rm-dr/daisy
synced 2025-02-20 05:59:21 -08:00
Fixed variable name check
This commit is contained in:
parent
999f24ce52
commit
dd0f4387b6
@ -40,7 +40,8 @@ impl Context {
|
||||
|
||||
if {
|
||||
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 }
|
||||
|
||||
for c in s.to_lowercase().chars() {
|
||||
|
@ -23,6 +23,7 @@ mod unit;
|
||||
pub use crate::quantity::unit::Unit;
|
||||
pub use crate::quantity::unit::FreeUnit;
|
||||
pub use crate::quantity::unit::WholeUnit;
|
||||
pub use crate::quantity::unit::freeunit_from_string;
|
||||
|
||||
mod quantity;
|
||||
pub use crate::quantity::quantity::Quantity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user