From 9f2545395db1a47988ca51ffe6d9b5f9a58c66ba Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 4 Jul 2020 11:14:11 +0200 Subject: [PATCH] better value matching regex --- src/public/app/widgets/note_attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/widgets/note_attributes.js b/src/public/app/widgets/note_attributes.js index 2a7a42cba..ae0ece941 100644 --- a/src/public/app/widgets/note_attributes.js +++ b/src/public/app/widgets/note_attributes.js @@ -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('"')) {