diff --git a/src/lint/linter/ArcanistRubyLinter.php b/src/lint/linter/ArcanistRubyLinter.php --- a/src/lint/linter/ArcanistRubyLinter.php +++ b/src/lint/linter/ArcanistRubyLinter.php @@ -35,7 +35,7 @@ list($stdout) = execx('%C --version', $this->getExecutableCommand()); $matches = array(); - $regex = '/^ruby (?P\d+\.\d+\.\d+)p\d+/'; + $regex = '/^ruby (?P\d+\.\d+\.\d+)+/'; if (preg_match($regex, $stdout, $matches)) { return $matches['version']; } else {