Skip to content

Commit

Permalink
Fix directory validator regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jskowronski39 committed Jan 7, 2024
1 parent c8e7954 commit 243dde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/WindowsDirectoryName.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class WindowsDirectoryName extends Regex
public $message = 'Invalid directory name';

/** @var string */
public $pattern = '/^.{1,248}[^<>:"\/\|?*]$/ui';
public $pattern = '/^.[^\<\>\:\"\/\|\?\*]{1,248}$/ui';

public function __construct(
string $pattern = null,
Expand Down

0 comments on commit 243dde5

Please sign in to comment.