20 lines
939 B
Markdown
20 lines
939 B
Markdown
#### Handle Unicode zero-width marks in string width (#19538 by @TheAlexLichter)
|
|||
|
|
|
||
|
|
Prettier now treats Unicode nonspacing and enclosing marks as zero-width when measuring lines.
|
||
|
|
|
||
|
|
<!-- prettier-ignore -->
|
||
|
|
```js
|
||
|
|
// Input
|
||
|
|
moment.updateLocale("bo", { monthsShort: "ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_") });
|
||
|
|
|
||
|
|
// Prettier stable
|
||
|
|
moment.updateLocale("bo", {
|
||
|
|
monthsShort:
|
||
|
|
"ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_"),
|
||
|
|
});
|
||
|
|
|
||
|
|
// Prettier main
|
||
|
|
moment.updateLocale("bo", {
|
||
|
|
monthsShort: "ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_"),
|
||
|
|
});
|
||
|
|
```
|