Skip to content

Commit

Permalink
Fixes #1725. Fix version parsing of PHP executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Jun 20, 2017
1 parent 3411fad commit 6db34cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Next
- Fixes [#1725](https://github.com/Glavin001/atom-beautify/issues/1725). Fix version parsing of PHP executable
- Fixes [#1730](https://github.com/Glavin001/atom-beautify/issues/1730). Correctly parse PHPCBF version and improve handling of Executable
- ...

Expand Down
2 changes: 1 addition & 1 deletion src/beautifiers/php-cs-fixer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = class PHPCSFixer extends Beautifier
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text) -> text.match(/PHP (.*) \(cli\)/)[1]
parse: (text) -> text.match(/PHP (\d+\.\d+\.\d+)/)[1]
}
}
{
Expand Down
2 changes: 1 addition & 1 deletion src/beautifiers/phpcbf.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = class PHPCBF extends Beautifier
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text) -> text.match(/PHP (.*) \(cli\)/)[1]
parse: (text) -> text.match(/PHP (\d+\.\d+\.\d+)/)[1]
}
}
{
Expand Down

0 comments on commit 6db34cd

Please sign in to comment.