sindresorhus
df

https://github.com/sindresorhus/df
Go to Github

Get free disk space info from `df -kP`

https://github.com/sindresorhus/df/issues/5Go to Github

FundedView inVolume names that end with a number are truncated#5

mceachencreated this issue 13 days ago

Thanks for your work on execa and df!

Your regex to split df fails under the following conditions:

  • when volume names end with a number, the number is removed (so /Volumes/Untitled 123 is reported as /Volumes/Untitled). Note that on mac, when you format a new drive into multiple partitions, these are the default names, so this isn't an edge case.
  • if a device name has whitespace followed by a number, all the fields are off-by-one. This case should be much less common than the first case.

Logs

Amount funded

$40.00

Resolve this issue and earn $36.00

Fund this issue

Fund as

Payment method

Amount(USD)

Please sign in first to fund this issue

Sign in with

Pull requests

0

    Submit

    URL of your pull request

    Submit your pull request

    Please sign in first to submit a pull request

    Sign in with