From d5282ae64e24c6d626401d61fbaea8055980aaa3 Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 19 Oct 2022 13:47:27 +0100 Subject: [PATCH] fix: some quotes have newlines at the end --- src/components/widgets/quote/Quote.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/quote/Quote.jsx b/src/components/widgets/quote/Quote.jsx index 5a6044e0..a137ec4d 100644 --- a/src/components/widgets/quote/Quote.jsx +++ b/src/components/widgets/quote/Quote.jsx @@ -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,