Skip to content

Commit 8f0a2ef

Browse files
author
Jordan Hall
authored
Merge pull request #43 from DivineOmega/fix/windows-support
Windows support for repetitive and sequential char passwords
2 parents 97c7f68 + 1c821d0 commit 8f0a2ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Rules/RepetitiveCharacters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RepetitiveCharacters implements Rule
2121
*/
2222
public function __construct()
2323
{
24-
$this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE));
24+
$this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE));
2525
}
2626

2727
/**

src/Rules/SequentialCharacters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SequentialCharacters implements Rule
2121
*/
2222
public function __construct()
2323
{
24-
$this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE));
24+
$this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE));
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)