tamaina 2021-02-18 22:24:40 +09:00
parent a96420f395
commit 0b88e08d81
1 changed files with 3 additions and 2 deletions

View File

@ -70,8 +70,9 @@ export default defineComponent({
let noteText = '';
if (this.title) noteText += `${this.title}\n`;
// titletexttext. Googletext
if (text && this.title !== text && this.title !== `${text}.`) noteText += `${text}\n`;
// Google
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}`;
this.initialText = noteText.trim();