mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Using regex match instead of endsWith for better browser compatibility
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user