mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Using regex match instead of endsWith for better browser compatibility
This commit is contained in:
parent
e10a5ca213
commit
94f64567c6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue