Update:Author names ignore periods when checking for existing authors #993

This commit is contained in:
advplyr committed 2022-09-18 16:58:20 -05:00
1 parent ae4ac392c6
commit be592a04d0
2 files changed
+11 -1

No files matched your search

+2 -1
View File
@@ -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