From a8df5d3c5d05bb02bc39e76a8e71d060f1907d27 Mon Sep 17 00:00:00 2001 From: LocalNewsTV <62873746+LocalNewsTV@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:18:20 -0700 Subject: [PATCH] Add FF Regex to remove edit flags --- app/frontend/src/registry/components/people/Notes.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/registry/components/people/Notes.vue b/app/frontend/src/registry/components/people/Notes.vue index 1e949ec44..4357c6c4b 100644 --- a/app/frontend/src/registry/components/people/Notes.vue +++ b/app/frontend/src/registry/components/people/Notes.vue @@ -300,8 +300,10 @@ export default { * @param {Object} note Note currently being edited */ noteEditHandler (note) { - const editRegex = /^\(Edited \d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{2}:\d{2} (AM|PM)\)\s/; - this.noteContentEdit = note.note.replace(editRegex, ""); + const editRegexChromium = /^\(Edited \d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{2}:\d{2} (AM|PM)\)\s/; + const editRegexFirefox = /^\(Edited \d{4}-\d{1,2}-\d{1,2}, \d{1,2}:\d{2}:\d{2} (a.m.|p.m.)\)\s/; + this.noteContentEdit = note.note.replace(editRegexChromium, ""); + this.noteContentEdit = this.noteContentEdit.replace(editRegexFirefox, ""); this.activeNote = note; this.confirmEditNoteModal = true; },