Skip to content

Commit

Permalink
Update regular expression to match custom builds of GnuPG like the on…
Browse files Browse the repository at this point in the history
…e provided by MAMP. Fixes PEAR Bug #17682.
  • Loading branch information
gauthierm committed Feb 28, 2013
1 parent b75d8c8 commit 11ffc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Crypt/GPG/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ public function getVersion()
}

$matches = array();
$expression = '/gpg \(GnuPG\) (\S+)/';
$expression = '#gpg \(GnuPG[A-Za-z0-9/]*?\) (\S+)#';

if (preg_match($expression, $info, $matches) === 1) {
$this->_version = $matches[1];
Expand Down

0 comments on commit 11ffc38

Please sign in to comment.