mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 10:55:05 +02:00
Update:Author names ignore periods when checking for existing authors #993
This commit is contained in:
parent
ae4ac392c6
commit
be592a04d0
2 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
const Logger = require('../../Logger')
|
||||
const { getId } = require('../../utils/index')
|
||||
const { checkNamesAreEqual } = require('../../utils/parsers/parseNameString')
|
||||
|
||||
class Author {
|
||||
constructor(author) {
|
||||
|
@ -86,7 +87,7 @@ class Author {
|
|||
Logger.error(`[Author] Author name is null (${this.id})`)
|
||||
return false
|
||||
}
|
||||
return this.name.toLowerCase() == name.toLowerCase().trim()
|
||||
return checkNamesAreEqual(this.name, name)
|
||||
}
|
||||
}
|
||||
module.exports = Author
|
Loading…
Add table
Add a link
Reference in a new issue