From 4e423954a4a2471679826473170a581228852f88 Mon Sep 17 00:00:00 2001 From: singularitti Date: Tue, 22 Feb 2022 10:39:06 -0500 Subject: [PATCH] Fix `myuparse` does not take spaces Bug in #203 --- src/Express.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Express.jl b/src/Express.jl index 20fe1e8c..74ef3e59 100644 --- a/src/Express.jl +++ b/src/Express.jl @@ -7,7 +7,8 @@ import Unitful import Configurations: convert_to_option -myuparse(str::AbstractString) = uparse(str; unit_context = Unitful.unitmodules) +myuparse(str::AbstractString) = + uparse(filter(!isspace, str); unit_context = Unitful.unitmodules) abstract type Calculation end abstract type ElectronicStructure <: Calculation end