GoogleChromeLabs / text-fragments-polyfill

Apache License 2.0
116 stars 27 forks source link

Use Intl.Segmenter for expanding range ends to word bounds #88

Closed tfmar closed 3 years ago

tfmar commented 3 years ago

This patch mirrors the last, which implemented Intl.Segmenter support for expanding range starts.

Specifically, it:

The diff will also show some changes to backwardTraverse and the existing body of expandRangeStartToWordBound, but these are just auto-formatting.