Skip to content

Commit

Permalink
Fix myuparse does not take spaces
Browse files Browse the repository at this point in the history
Bug in #203
  • Loading branch information
singularitti committed Feb 22, 2022
1 parent 6bdc144 commit 4e42395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Express.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e42395

Please sign in to comment.