diff --git a/src/posts/text_manipulation.html b/src/posts/text_manipulation.html
index 017b5d1..243f30a 100644
--- a/src/posts/text_manipulation.html
+++ b/src/posts/text_manipulation.html
@@ -29,7 +29,7 @@
return word;
}
- if (/.+[,.!?]/.test(word)) {
+ if (/.+[,.!?]$/.test(word)) {
return `\`${word.slice(0, -1)}\`${word.slice(-1)}`;
}