I'm not sure if this is much better

```javascript
function normalize(fullName) {
  var split = fullName.split(':'),
      type = split[0],
      name = split[1],
      match = name.match(/\.[a-z]/);

  if (match && type !== 'template') {
    return type + ':' + name.replace(match[0], match[0].substr(1,1).toUpperCase());
  } else {
    return fullName;
  }
}
```