mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01:00
Changed replaceAll to replace since node12 doent' have it
This commit is contained in:
parent
2f8a90c21a
commit
01c8013309
@ -280,7 +280,7 @@ class Book {
|
|||||||
var seriesMatch = this._series.toLowerCase().includes(search)
|
var seriesMatch = this._series.toLowerCase().includes(search)
|
||||||
|
|
||||||
// ISBN match has to be exact to prevent isbn matches to flood results. Remove dashes since isbn might have those
|
// ISBN match has to be exact to prevent isbn matches to flood results. Remove dashes since isbn might have those
|
||||||
var isbnMatch = this.isbn.toLowerCase().replaceAll('-', '') === search.replaceAll('-', '')
|
var isbnMatch = this.isbn.toLowerCase().replace(/-/g, '') === search.replace(/-/g, '')
|
||||||
|
|
||||||
var bookMatchKey = titleMatch ? 'title' : subtitleMatch ? 'subtitle' : authorsMatched.length ? 'authorFL' : seriesMatch ? 'series' : isbnMatch ? 'isbn' : false
|
var bookMatchKey = titleMatch ? 'title' : subtitleMatch ? 'subtitle' : authorsMatched.length ? 'authorFL' : seriesMatch ? 'series' : isbnMatch ? 'isbn' : false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user