Skip to content

Commit

Permalink
Merge pull request #63 from ueberdosis/feature/sandbox
Browse files Browse the repository at this point in the history
Feature/sandbox
  • Loading branch information
patrickbaber authored Jan 27, 2023
2 parents 5989e15 + bea371c commit fa1a575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pandoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function version()
{
$output = $this->execute(['--version']);

preg_match("(?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)", $output, $matches);
preg_match("~^.*\K\d(?<![a-z\d.].)\d*(?:\.\d+)*+~mi", $output, $matches);
list($version) = $matches;

if (!$version) {
Expand Down

0 comments on commit fa1a575

Please sign in to comment.