jmespath / jmespath.js

Javascript implementation of JMESPath, a query language for JSON
http://jmespath.org
Other
783 stars 97 forks source link

Supplementary plane code points are not handled atomically #88

Open gibson042 opened 2 years ago

gibson042 commented 2 years ago

cf. https://github.com/jmespath-community/jmespath.test/issues/2

String functions such as length and reverse and sort are documented to treat strings as sequences of code points, but this implementation incorrectly interprets the code units of each surrogate pair representing a supplementary plane character as independent code points.