Minor fixes and polyfills

This commit is contained in:
Mark McDowall 2013-09-11 14:38:35 -07:00
commit feda4a9b67
7 changed files with 44 additions and 43 deletions

View file

@ -64,7 +64,7 @@ define(
});
Handlebars.registerHelper('titleWithYear', function () {
if (this.title.match(/\s\(\d{4}\)$/)) {
if (this.title.endsWith(' ({0})'.format(this.year))) {
return this.title;
}