Hunspell->getSupportedLanguages() is not compatible with Windows paths
Closed this issue · 1 comments
caugner commented
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")
.
icanhazstring commented
Tagged with 2.0.1