dominikh / filesize

filesize is a small ruby class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
MIT License
81 stars 16 forks source link

Accept unicode space characters #15

Closed cyclotron3k closed 8 years ago

cyclotron3k commented 8 years ago

[[:space:]] includes unicode space characters too, so when Nokogiri interprets "12.3 MiB" as "12.3\u00A0MiB", Filesize will still work.

[[:blank:]] might be even better because it doesn't include newline and carriage returns.