Skip to content

Commit

Permalink
Add FF Regex to remove edit flags
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV committed Apr 2, 2024
1 parent 0c7604e commit a8df5d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/frontend/src/registry/components/people/Notes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit a8df5d3

Please sign in to comment.