Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix regex order
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jul 12, 2021
1 parent 0b02e2b commit de91061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function stripFirstLine($text)
];

foreach ($df as $dfk => $dfv) {
preg_match_all("/(.+?)\s+(\d+?)\s+(\d+?)\s+(\d+?)\s+(\d+?%)\s+(.+)/", $dfv, $matches);
preg_match_all("/(.+?)\s+(\d+?)\s+(\d+?)\s+(\d+?)\s+(\d+?%)\s+(.+)/", $dfv, $matches, PREG_SET_ORDER);
$df[$dfk] = array_map(function ($x)
{
return [
Expand Down

0 comments on commit de91061

Please sign in to comment.