diff --git a/src/Pandoc.php b/src/Pandoc.php index 85ba646..2869cd4 100644 --- a/src/Pandoc.php +++ b/src/Pandoc.php @@ -224,7 +224,7 @@ public function version() { $output = $this->execute(['--version']); - preg_match("(?:(\d+)\.)?(?:(\d+)\.)?(?:(\d+)\.\d+)", $output, $matches); + preg_match("~^.*\K\d(?