From c5b7c13c7c0999a495504bc6494400b3c9d5dad7 Mon Sep 17 00:00:00 2001 From: Aurelijus Date: Thu, 24 May 2012 10:13:20 +0200 Subject: [PATCH] Filename linter fix for Windows Summary: On windows paths are separated with \. Test Plan: - Run filename linter on windows (or some path with \) Reviewers: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2559 --- src/lint/linter/filename/ArcanistFilenameLinter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/linter/filename/ArcanistFilenameLinter.php b/src/lint/linter/filename/ArcanistFilenameLinter.php index a529bd74..e1c2d2bb 100644 --- a/src/lint/linter/filename/ArcanistFilenameLinter.php +++ b/src/lint/linter/filename/ArcanistFilenameLinter.php @@ -44,7 +44,7 @@ final class ArcanistFilenameLinter extends ArcanistLinter { } public function lintPath($path) { - if (!preg_match('@^[a-z0-9./_-]+$@i', $path)) { + if (!preg_match('@^[a-z0-9./\\\\_-]+$@i', $path)) { $this->raiseLintAtPath( self::LINT_BAD_FILENAME, 'Name files using only letters, numbers, period, hyphen and '.