mekras/php-speller

Hunspell->getSupportedLanguages() is not compatible with Windows paths

Closed this issue · 1 comments

Potential dictionary paths that contain a colon (:) are skipped, but all paths on Windows contain a colon (e.g. C:\Hunspell\en_GB):

https://github.com/mekras/php-speller/blob/master/src/Hunspell/Hunspell.php#L93

A solution should be to check whether !is_file("$line.dic") && !is_file("line.aff").

Tagged with 2.0.1