Skip to content

Commit

Permalink
Merge pull request #42 from DivineOmega/fix/windows-support
Browse files Browse the repository at this point in the history
Support Windows when reading dictionary file
  • Loading branch information
Jordan Hall authored May 27, 2021
2 parents 92841e3 + 2be03b3 commit 97c7f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rules/DictionaryWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DictionaryWords implements Rule
*/
public function __construct()
{
$this->words = explode(PHP_EOL, file_get_contents(self::DICTIONARY_FILE));
$this->words = explode("\n", file_get_contents(self::DICTIONARY_FILE));
}

/**
Expand Down

0 comments on commit 97c7f68

Please sign in to comment.