[PE-D][Tester D] addnote
cuts off part of the note if n\
is in the note
#213
Labels
Milestone
addnote
cuts off part of the note if n\
is in the note
#213
Current Behaviour
addnote
command doesn't handlen\
well, as it may cut off parts of the note ifn\
is in the note.Expected Behaviour
addnote
command should handlen\
, and not cut off part of a note.Steps to reproduce
addnote S1234567A n\I can use the addnote command: n\ to add a note
show S1234567A
to add a note
is kept as the note, but not the full note:I can use the addnote command: n\ to add a note
.Why this is an issue
The string
n\
can appear quite commonly. For example, consider this Windows file pathC:\Users\John\Documents\example.txt
. If one of the notes contains this file path, parts of note could be lost.This affects usernames and directories that end with
n
more signficantly, which may be a issue if user wants to store filenames inside their notes for quickly accessing a certain file related to a patient.Suggested Change
Only accept the first
n\
prefix, and treat the following text as part of the message.Labels:
type.FunctionalityBug
severity.Medium
original: tituschewxj/ped#13
The text was updated successfully, but these errors were encountered: