HomePhabricator

Fix highlighting of grapheme clusters in search snippets

Authored by TJones on Aug 14 2019, 7:52 PM.

Description

Fix highlighting of grapheme clusters in search snippets

Use Unicode-aware regex to move highlighting boundaries
so that combining characters are not split from their
base characters by highlighting.

Update tests.

Bug: T35242
Change-Id: I64a99055b19d85133031899720b3f0d9d316434f

Details

Committed
EBernhardsonAug 16 2019, 6:07 PM
Parents
rECIRaad8e658de54: Support MessageCache as service
Branches
Unknown
Tags
Unknown
ChangeId
I64a99055b19d85133031899720b3f0d9d316434f