Skip to content

Commit 652014c

Browse files
committed
fix: correct Intl.Segmenter constructor signature
1 parent 520a5df commit 652014c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/BlueskyComment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function getHostname(uri: string): string {
4040
}
4141
4242
function firstChar(str: string): string {
43-
const segmenter = new Intl.Segmenter({ granularity: 'grapheme' })
43+
const segmenter = new Intl.Segmenter(undefined, { granularity: 'grapheme' })
4444
return Array.from(segmenter.segment(str))[0]?.segment ?? ''
4545
}
4646
</script>

0 commit comments

Comments
 (0)