forked from pemistahl/lingua
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multi-language detection exceptions for multi-script text
There were multiple issues: - `end` was previously not correctly set after a new section was started This could erroneously lead to `end <= start` if there was a trailing single character in a different script - `lettersCount` was one too high
- Loading branch information
1 parent
42a5231
commit adfb0f7
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters