Failing to parse the date from the protocol Title should not abort the protocol parsing. #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
parser_data.date = Some(general::parse_date(title.borrow())?);the
Some(general::parse_date(title.borrow())?)should be replaced withgeneral::parse_date(title.borrow()).ok()to ignore errors when parsing the date from the protocol title.Additionally one might want to print a warning to stderr that parsing the date from the title failed.
The date parsing is implemented in https://www.fs-infmath.uni-kiel.de/git/FS-InfMath/FS-Protokoll/src/branch/master/fs_protocol_lib/src/format/general.rs#L138 in case one wants to make the parsing handle more cases.
In either case an additional test in
/fs_protocol_bin/tests/should be added to prevent regressions.Add a file
markdown/<TestName>.md.stdinwith the markdown content oretherpad/<TestName>.txt.stdinwith an etherpad plaintext export and see the README.md for instructions on how to generate new reference files after adding the new test input.