Skip to content

Commit 8e58387

Browse files
authored
Merge pull request #1156 from Divyansh013/griditem-regex-fix
regex fix for hindi punctuation
2 parents 1f79e87 + c520760 commit 8e58387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)