Skip to content

Commit

Permalink
Merge pull request #43 from DivineOmega/fix/windows-support
Browse files Browse the repository at this point in the history
Windows support for repetitive and sequential char passwords
  • Loading branch information
Jordan Hall authored May 27, 2021
2 parents 97c7f68 + 1c821d0 commit 8f0a2ef
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 8f0a2ef

Please sign in to comment.