From 02b4185b2e77dc5cbb367514bf58c8bd72d64ee6 Mon Sep 17 00:00:00 2001 From: tim b Date: Mon, 14 Jun 2010 22:02:41 -0700 Subject: annoying caps --- static/js/pichat.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index c19ff6b..8245582 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -68,7 +68,25 @@ function getImagesAsArray(text) { function linkify(text) { LastMsgContainsImage = false - return text.replace(URLRegex, linkReplace); + text = annoyingCaps(text) + text = text.replace(URLRegex, linkReplace); + return text +} + +function annoyingCaps(text){ + var chunks = text.split(" ") + console.log(chunks) + for(var i=0; i