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
even though "ő".length === 2 quill considers it as length 1 when we do quill.getLength() but for an emoji e.g. "😀".length === 2 quill considers it as length of 2 when we do quill.getLength()
even though quill.getLength() returns 1 for ő, if I try to create a delta with ő and check delta.length() that returns 2. This is quite confusing.
Expected behavior:
as JS returns same length for both the characters quill should do the same
Actual behavior:
quill.getLength() returns 2 for ő and quill.getLength() returns 3 for 😀. quill should have a consistent behavior regarding the length that it calculates
Platforms:
Chromium: 81.0.4044.138, Ubuntu 20.04
Version:
1.3.6
The text was updated successfully, but these errors were encountered:
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏
discrepancy in unicode character lengths in quill
Steps for Reproduction
"ő".length === 2
quill considers it as length1
when we doquill.getLength()
but for an emoji e.g."😀".length === 2
quill considers it as length of2
when we doquill.getLength()
quill.getLength()
returns 1 forő
, if I try to create a delta withő
and checkdelta.length()
that returns2
. This is quite confusing.Expected behavior:
Actual behavior:
ő
and quill.getLength() returns 3 for😀
. quill should have a consistent behavior regarding the length that it calculatesPlatforms:
Chromium: 81.0.4044.138, Ubuntu 20.04
Version:
1.3.6
The text was updated successfully, but these errors were encountered: