Fixes #1725. Fix version parsing of PHP executable
See https://github.com/Glavin001/atom-beautify/issues/1725#issuecomment-309379935
This commit is contained in:
parent
3411fad895
commit
6db34cd9d8
|
@ -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
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
|
|
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue