You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for your work. I have detect a bug on windows platform.
You can't detect new line in windows, because new line sometime is "\n" and sometime is "\r\n" and not only "\r" (like PHP_EOL).
I fix the newLine function to work on both systems. Can you add it to your release please ?
More docs here : https://stackoverflow.com/questions/21373478/n-vs-php-eol-vs-br
Can confirm I was going a bit mad trying to use the parser on a Windows build of Xampp, patched this in and it fixed everything. Merci beaucoup dude :)
Hi, thank you for your work. I have detect a bug on windows platform.
You can't detect new line in windows, because new line sometime is "\n" and sometime is "\r\n" and not only "\r" (like PHP_EOL).
I fix the newLine function to work on both systems. Can you add it to your release please ?
More docs here : https://stackoverflow.com/questions/21373478/n-vs-php-eol-vs-br
protected function newLine()
{
$r = in_array(
"\n", array(
$this->current_char,
$this->current_word
)
);
if (!$r){
$r = in_array(
PHP_EOL, array(
$this->current_char,
$this->current_word
)
);
}
return $r;
The text was updated successfully, but these errors were encountered: