parent
a96420f395
commit
0b88e08d81
|
@ -70,8 +70,9 @@ export default defineComponent({
|
||||||
|
|
||||||
let noteText = '';
|
let noteText = '';
|
||||||
if (this.title) noteText += `【${this.title}】\n`;
|
if (this.title) noteText += `【${this.title}】\n`;
|
||||||
// titleとtext(またはtext. Googleニュースがこれを吐く)が同一であればtextを省略
|
// Googleニュース対策
|
||||||
if (text && this.title !== text && this.title !== `${text}.`) noteText += `${text}\n`;
|
if (text?.startsWith(`${this.title}.\n`)) noteText += text.replace(`${this.title}.\n`, '');
|
||||||
|
else if (text && this.title !== text) noteText += `${text}\n`;
|
||||||
if (url) noteText += `${url}`;
|
if (url) noteText += `${url}`;
|
||||||
this.initialText = noteText.trim();
|
this.initialText = noteText.trim();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue