Page MenuHomePhabricator

D9475.id22657.diff
No OneTemporary

D9475.id22657.diff

diff --git a/src/lint/linter/ArcanistLesscLinter.php b/src/lint/linter/ArcanistLesscLinter.php
--- a/src/lint/linter/ArcanistLesscLinter.php
+++ b/src/lint/linter/ArcanistLesscLinter.php
@@ -86,11 +86,12 @@
return 'lessc';
}
- public function getCacheVersion() {
+ public function getVersion() {
list($stdout) = execx('%C --version', $this->getExecutableCommand());
$matches = array();
- if (preg_match('/^lessc (?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) {
+ $regex = '/^lessc (?P<version>\d+\.\d+\.\d+)\b/';
+ if (preg_match($regex, $stdout, $matches)) {
$version = $matches['version'];
} else {
return false;

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 18, 4:13 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6724927
Default Alt Text
D9475.id22657.diff (672 B)

Event Timeline