-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Longest common substring does not handle unicode properly #129
Labels
bug
Something isn't working
Comments
@dubzzz thank you very much for reporting this! |
Never mind |
daddou-ma
added a commit
to daddou-ma/javascript-algorithms
that referenced
this issue
Aug 22, 2018
trekhleb
pushed a commit
that referenced
this issue
Aug 28, 2018
@dubzzz thank you for reporting the issue. It should be fixed now. |
harshes53
pushed a commit
to harshes53/javascript-algorithms
that referenced
this issue
Dec 6, 2018
shoredata
pushed a commit
to shoredata/javascript-algorithms
that referenced
this issue
Mar 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that the algorithm longestCommonSubstring does not handle unicode characters properly:
You should maybe add a note on the algorithm regarding this. Basically the problem can occur whenever the strings contain characters outside the BMP range (ie code points greater than 0xffff).
Feel free to close the issue whenever you want. The aim was just to signal the problem is case you want to patch it in a way.
The text was updated successfully, but these errors were encountered: