10k or Bust
01 Aug 2010This is what makes it hard to write a web app in 10k:
function fix_case(c) {
s=c.split(" ").map(function(s) {
return s.charAt(0).toUpperCase() +
s.substring(1).toLowerCase(); }).join(" ");
return s.replace(/Of/g,"of");
}
178 bytes to properly title case something? You’re killing me Javascript!