Files
test-repo/changelog_unreleased/misc/19538.md
T
2026-07-10 19:20:54 +08:00

939 B

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.

// Input
moment.updateLocale("bo", { monthsShort: "ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_") });

// Prettier stable
moment.updateLocale("bo", {
  monthsShort:
    "ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_"),
});

// Prettier main
moment.updateLocale("bo", {
  monthsShort: "ཟླ་༡_ཟླ་༢_ཟླ་༣_ཟླ་༤_ཟླ་༥_ཟླ་༦_ཟླ་༧_ཟླ་༨_ཟླ་༩_ཟླ་༡༠_ཟླ་༡༡_ཟླ་༡༢".split("_"),
});