Closed PlNG closed 10 years ago
I found a small logic error on LanguageDetect.js#L176
if I'm reading this equality conversion chart correctly you're checking if the argument 'sample' is equal to 0 (zero), the empty array [], the empty string '', null, and false, but the first expression being true makes the second expression false.
Thanks, this is a bug actually, fixed it now.
I found a small logic error on LanguageDetect.js#L176
if I'm reading this equality conversion chart correctly you're checking if the argument 'sample' is equal to 0 (zero), the empty array [], the empty string '', null, and false, but the first expression being true makes the second expression false.