visionmedia/ejs — pull request #50 by GothAck (2012-05-23 13:51:47+00:00)
Title: Fix capitalisation of zero length strings

Capitalisation of zero length strings tried to uppercase undefined due to typeof str[0] === 'undefined', .charAt(0) fixes this by returning an empty string if the char does not exist.