Fixes #1725. Fix version parsing of PHP executable

See https://github.com/Glavin001/atom-beautify/issues/1725#issuecomment-309379935
This commit is contained in:
Glavin Wiechert 2017-06-20 00:20:44 -03:00
parent 3411fad895
commit 6db34cd9d8
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# Next # 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 - Fixes [#1730](https://github.com/Glavin001/atom-beautify/issues/1730). Correctly parse PHPCBF version and improve handling of Executable
- ... - ...

View File

@ -17,7 +17,7 @@ module.exports = class PHPCSFixer extends Beautifier
homepage: "http://php.net/" homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php" installation: "http://php.net/manual/en/install.php"
version: { version: {
parse: (text) -> text.match(/PHP (.*) \(cli\)/)[1] parse: (text) -> text.match(/PHP (\d+\.\d+\.\d+)/)[1]
} }
} }
{ {

View File

@ -15,7 +15,7 @@ module.exports = class PHPCBF extends Beautifier
homepage: "http://php.net/" homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php" installation: "http://php.net/manual/en/install.php"
version: { version: {
parse: (text) -> text.match(/PHP (.*) \(cli\)/)[1] parse: (text) -> text.match(/PHP (\d+\.\d+\.\d+)/)[1]
} }
} }
{ {