Open sitch opened 4 years ago
See the discussion in #7. I suggest to introduce FileSize.parse/2
and allow these options to be passed:
:symbols
- map of symbols, as for FileSize.format/2
:ignore_whitespace
- boolean to toggle whether the parser should ignore whitespace characters between value and unit
Was parsing output from
dstat
and you see values like:Which fails parsing due to the mandatory single spacer
" "
in the regex between the value and uniti.e.:
whereas if the space is there it works