fix: some quotes have newlines at the end

This commit is contained in:
Isaac
2022-10-19 13:47:27 +01:00
parent 8304c27fe2
commit d5282ae64e

View File

@@ -262,7 +262,7 @@ export default class Quote extends PureComponent {
const authorimgdata = await this.getAuthorImg(data.author);
const object = {
quote: '"' + data.quote + '"',
quote: '"' + data.quote.replace(/\s+$/g, '') + '"',
author: data.author,
authorlink: this.getAuthorLink(data.author),
authorimg: authorimgdata.authorimg,