Skip to content

Commit 698ae2a

Browse files
authored
Merge pull request #1181 from processing/1156
regex fix for hindi punctuation [2.0]
2 parents f2d36b6 + a791562 commit 698ae2a

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)