diff options
author | Corentin Noël <corentin@elementary.io> | 2020-04-11 19:55:54 +0200 |
---|---|---|
committer | Corentin Noël <corentin@elementary.io> | 2020-04-11 19:57:35 +0200 |
commit | b5ff273bf9e848ca4caed7cb461a7e0e8434485b (patch) | |
tree | 72c987d89b3b6affbb035911c6350693ab5c4b0f /src | |
parent | 6b95266e963d3bbcd53546198419dd4f1c852b0e (diff) |
Allow to use any name for Group creation
The Group name is already escaped by the underlying vCard library, there is no need to verify things here
Signed-off-by: Corentin Noël <corentin@elementary.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Properties/PropertyGroups.vue | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue index d5f9e7ff..700a44dc 100644 --- a/src/components/Properties/PropertyGroups.vue +++ b/src/components/Properties/PropertyGroups.vue @@ -169,14 +169,9 @@ export default { * @returns {boolean} */ validateGroup(groupName) { - // Only allow characters without vcard special chars - const groupRegex = /^[^;,:]+$/gmi - if (groupName.match(groupRegex)) { - this.addContactToGroup(groupName) - this.localValue.push(groupName) - return true - } - return false + this.addContactToGroup(groupName) + this.localValue.push(groupName) + return true }, }, } |