Simon Willison’s Weblog

Subscribe
Atom feed for trim

2 items tagged “trim”

2009

tr.im is “discontinuing service”. “However, all tr.im links will continue to redirect, and will do so until at least December 31, 2009.Your tweets with tr.im URLs in them will not be affected.”—these statements seem to contradict themselves. Will tr.im URLs in tweets stop working after December 31st or not? Any chance they could hand the domain over to the Internet Archive? At any rate, this is exactly why centralised URL shorteners are a harmful trend.

# 10th August 2009, 11:06 am / internet-archive, redirects, trim, twitter, urls, urlshorteners

2008

Faster JavaScript Trim. Neat optimisation post—it turns out that while regular expressions are great for removing leading whitespace you can do a lot better at trailing whitespace by manually looping backwards from the end of the string.

# 3rd February 2008, 10:12 pm / javascript, optimisation, steven-levithan, trim, whitespace