ejs
ejs copied to clipboard
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.