mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
better value matching regex
This commit is contained in:
parent
67bffbf30b
commit
9f2545395d
@ -487,7 +487,7 @@ export default class NoteAttributesWidget extends TabAwareWidget {
|
||||
}
|
||||
|
||||
formatValue(val) {
|
||||
if (!/[^\w_-]/.test(val)) {
|
||||
if (/^[\p{L}\p{N}\-_,.]+$/u.test(val)) {
|
||||
return val;
|
||||
}
|
||||
else if (!val.includes('"')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user