Skip to content

Commit

Permalink
Windows support for repetitive and sequential char passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed May 27, 2021
1 parent 2be03b3 commit 03550f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rules/RepetitiveCharacters.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RepetitiveCharacters implements Rule
*/
public function __construct()
{
$this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE));
$this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/SequentialCharacters.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SequentialCharacters implements Rule
*/
public function __construct()
{
$this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE));
$this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE));
}

/**
Expand Down

0 comments on commit 03550f3

Please sign in to comment.