Skip to content

Commit

Permalink
fixed detection for mohist 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Jul 6, 2022
1 parent 1ad6222 commit 7ee2ac5
Show file tree
Hide file tree
Showing 5 changed files with 4,519 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function getPatterns(): array
{
return [
'/This server is running ?Mohist ?version git-Mohist-(?:[0-9\.wa]+)-([0-9]+)/',
'/This server is running Mohist version (?:[0-9\.wa]+)-([0-9]+)/'
'/This server is running Mohist version ([0-9\.wa]+(?:-([0-9]+))?) /'
];
}
}
2 changes: 1 addition & 1 deletion src/Log/MohistLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MohistLog extends VanillaLog
/**
* @var string
*/
protected static $prefixPattern = '(\[(?:[0-9]{2}[a-zA-Z]+[0-9]+ )?(?:[0-9]{2}\:?){3}\] \[[^\/]+\/(\w+)\](?: \[[^\]]+\])?\:) ';
protected static $prefixPattern = '(\[(?:[0-9]{2}[a-zA-Z]+[0-9]+ )?(?:[0-9]{2}\:?){3}(?:\.[0-9]+)?\] \[[^\/]+\/(\w+)\](?: \[[^\]]+\])?\:) ';

/**
* @return array
Expand Down
Loading

0 comments on commit 7ee2ac5

Please sign in to comment.