Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13969854
D9475.id22657.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
672 B
Referenced Files
None
Subscribers
None
D9475.id22657.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9475: Fix `ArcanistLesscLinter::getVersion` function.
Attached
Detach File
Event Timeline
Log In to Comment