mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-24 22:40:55 +01:00
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
This commit is contained in:
parent
fb4f3c9446
commit
c5b7c13c7c
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ final class ArcanistFilenameLinter extends ArcanistLinter {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function lintPath($path) {
|
public function lintPath($path) {
|
||||||
if (!preg_match('@^[a-z0-9./_-]+$@i', $path)) {
|
if (!preg_match('@^[a-z0-9./\\\\_-]+$@i', $path)) {
|
||||||
$this->raiseLintAtPath(
|
$this->raiseLintAtPath(
|
||||||
self::LINT_BAD_FILENAME,
|
self::LINT_BAD_FILENAME,
|
||||||
'Name files using only letters, numbers, period, hyphen and '.
|
'Name files using only letters, numbers, period, hyphen and '.
|
||||||
|
|
Loading…
Reference in a new issue