Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regular expression for used disk space check output #12

Merged
merged 2 commits into from
Dec 13, 2021

Conversation

SamuelNitsche
Copy link
Contributor

The current regular expression, which matches the command line output for the used disk space check, parses a maximum of two digits.
Example

This means that a disk usage of 100% is actually parsed as 00%, which is obviously wrong. I think it is okay to simply parse any digit before the % sign.
Example

@freekmurze freekmurze merged commit ab630c1 into spatie:main Dec 13, 2021
@freekmurze
Copy link
Member

Thank you!

@SamuelNitsche SamuelNitsche deleted the fix-regex branch December 14, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants