Skip to content

Commit 5ac2b56

Browse files
committed
regex fix for hindi punctuation
1 parent 8dc7b59 commit 5ac2b56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/GridItem/Reference.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { item } = Astro.props;
2020
</p>
2121
<p class="text-sm mt-xxs">
2222
{
23-
`${item.data.description?.replace(/<[^>]*>/g, "").split(/(\.|。)(\s|$)/, 1)[0]}.`
23+
`${item.data.description?.replace(/<[^>]*>/g, "").split(/(\.|||)(\s|$)/, 1)[0]}.`
2424
}
2525
</p>
2626
</a>

0 commit comments

Comments
 (0)