Skip to content

Commit 1d88374

Browse files
committed
fix: punctuation missing end of word requirement
1 parent deea5ab commit 1d88374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posts/text_manipulation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
return word;
3030
}
3131

32-
if (/.+[,.!?]/.test(word)) {
32+
if (/.+[,.!?]$/.test(word)) {
3333
return `\`${word.slice(0, -1)}\`${word.slice(-1)}`;
3434
}
3535

0 commit comments

Comments
 (0)