-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Was parsing output from dstat and you see values like:
504k 11k
1189B 2733B
59k 14k
14M 8959B
Which fails parsing due to the mandatory single spacer " " in the regex between the value and unit
i.e.:
iex> FileSize.parse("1GB")
{:error, %FileSize.ParseError{reason: :format, value: "1GB"}}whereas if the space is there it works
iex> FileSize.parse("1 GB")
{:ok, #FileSize<"1 GB">}
Metadata
Metadata
Assignees
Labels
No labels