unicode-rs / unicode-segmentation

Grapheme Cluster and Word boundaries according to UAX#29 rules
https://unicode-rs.github.io/unicode-segmentation
Other
571 stars 56 forks source link

Fix unwrap panic in next_boundary() #137

Closed cardigan1008 closed 3 months ago

cardigan1008 commented 3 months ago

Fix unwrap panic in #119

Add check for iter.next() to avoid panic in unwrap.