Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14025192
D9174.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
541 B
Referenced Files
None
Subscribers
None
D9174.diff
View Options
diff --git a/src/lint/linter/ArcanistFlake8Linter.php b/src/lint/linter/ArcanistFlake8Linter.php
--- a/src/lint/linter/ArcanistFlake8Linter.php
+++ b/src/lint/linter/ArcanistFlake8Linter.php
@@ -47,7 +47,7 @@
list($stdout) = execx('%C --version', $this->getExecutableCommand());
$matches = array();
- if (preg_match('/^(?P<version>\d+\.\d+\.\d+)\b/', $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, Nov 8, 3:07 PM (6 d, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6742374
Default Alt Text
D9174.diff (541 B)
Attached To
Mode
D9174: Relax the version regex for `ArcanistFlake8Linter`.
Attached
Detach File
Event Timeline
Log In to Comment