MCPcopy Index your code
hub / github.com/formatjs/formatjs / isFormatRelatedTest

Function isFormatRelatedTest

packages/intl-segmenter/tests/word.test.ts:9–14  ·  view source on GitHub ↗
(comment: string)

Source from the content-addressed store, hash-verified

7// Exclude tests that rely on Unicode-spec-only behavior (WB4: Format/Extend attachment).
8// See: https://unicode.org/reports/tr29/#Word_Boundaries
9const isFormatRelatedTest = (comment: string) => {
10 // Exclude tests involving Format characters (WORD JOINER, SOFT HYPHEN, etc.)
11 // appearing after other characters, which Unicode 17.0 expects to attach
12 // but CLDR rules may segment differently
13 return comment.includes('(Format)') && comment.includes('× [4.0]')
14}
15
16// Regional Indicator (emoji flags) with Extend/Format characters
17// Known limitation: JavaScript regex cannot properly handle transparency within

Callers 1

word.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected