chanchin, what error are you referring to?
If you want to make the shortened URL clickable, I've mentioned this matter in my description, and here is the re-post:
If you want to make the short URL clickable, parenthesize the whole regex match as such:
/(http:\/\/\S+)/
I'm sure you can do the adding in my script; if you can't, let me know.