(name: string)
| 9 | // Preserve the user's spelling for display while comparing equivalent input. |
| 10 | const formatCollectionName = (name: string) => name.trim().normalize('NFC'); |
| 11 | const normalizeCollectionName = (name: string) => |
| 12 | formatCollectionName(name).toLowerCase().normalize('NFC'); |
| 13 | |
| 14 | // Collection limits are based on visible characters. Grapheme segmentation keeps |
| 15 | // composed scripts and emoji from being penalized for their code point count. |
no test coverage detected