mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
validate/clean inverse relation name in promoted attr definition
This commit is contained in:
@@ -20,7 +20,7 @@ function parse(value) {
|
||||
else if (token.startsWith('inverse')) {
|
||||
const chunks = token.split('=');
|
||||
|
||||
defObj.inverseRelation = chunks[1];
|
||||
defObj.inverseRelation = chunks[1].replace(/[^\p{L}\p{N}_:]/ug, "")
|
||||
}
|
||||
else {
|
||||
console.log("Unrecognized attribute definition token:", token);
|
||||
|
||||
Reference in New Issue
Block a user