Skip to content

Commit a791562

Browse files
Divyansh013ksen0
authored andcommitted
regex fix for hindi punctuation
1 parent f2d36b6 commit a791562

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)