1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Merge pull request #31 from aurelijus/filename-linter-windows

Filename linter fix for Windows
This commit is contained in:
Evan Priestley 2012-05-24 07:05:08 -07:00
commit 35c30207bd

View file

@ -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 '.