1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 18:28:19 +00:00

Using regex match instead of endsWith for better browser compatibility

This commit is contained in:
Mark McDowall 2013-09-11 08:13:41 -07:00
parent e10a5ca213
commit 94f64567c6

View file

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