better value matching regex

This commit is contained in:
zadam 2020-07-04 11:14:11 +02:00
parent 67bffbf30b
commit 9f2545395d

View File

@ -487,7 +487,7 @@ export default class NoteAttributesWidget extends TabAwareWidget {
} }
formatValue(val) { formatValue(val) {
if (!/[^\w_-]/.test(val)) { if (/^[\p{L}\p{N}\-_,.]+$/u.test(val)) {
return val; return val;
} }
else if (!val.includes('"')) { else if (!val.includes('"')) {