Skip to content

Commit dc0ec24

Browse files
PA0LbstBleumms
authored andcommitted
FIX: dc_title and dc_isPartOf may include colons (fixes #312).
Co-authored-by: Nyrco <nicolas.ranvoisy@utt.fr> Co-authored-by: Bleumms <emeline.nerot@utt.fr>
1 parent a32143b commit dc0ec24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/Metadata.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function Metadata({metadata = {}, editable, backend, setLastUpdate}) {
2626
...Object.fromEntries(
2727
Object.entries(editedDocument).filter(([key, _]) => !key.startsWith('dc_'))
2828
),
29-
...parse(event.target.value)
29+
...parse(event.target.value.replaceAll(/(dc_isPartOf|dc_title):\s*"?([^"\n]+)"?$/gm), '$1: "$2')
3030
};
3131
setEditedDocument(updatedDocument);
3232
backend.putDocument(updatedDocument)

0 commit comments

Comments
 (0)