Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15415763
D11728.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
532 B
Referenced Files
None
Subscribers
None
D11728.diff
View Options
diff --git a/src/lint/linter/ArcanistPEP8Linter.php b/src/lint/linter/ArcanistPEP8Linter.php
--- a/src/lint/linter/ArcanistPEP8Linter.php
+++ b/src/lint/linter/ArcanistPEP8Linter.php
@@ -59,7 +59,7 @@
list($stdout) = execx('%C --version', $this->getExecutableCommand());
$matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
+ if (preg_match('/^(?P<version>\d+\.\d+(?:\.\d+)?)\b/', $stdout, $matches)) {
return $matches['version'];
} else {
return false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 7:48 AM (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7715185
Default Alt Text
D11728.diff (532 B)
Attached To
Mode
D11728: losen pep8 version check
Attached
Detach File
Event Timeline
Log In to Comment