Skip to content

Commit

Permalink
Merge pull request #926 from nextcloud/fix-contact-group-names
Browse files Browse the repository at this point in the history
Updated regex to get contectx groups
  • Loading branch information
tacruc authored Jan 10, 2023
2 parents e1ebdce + 9819482 commit 5d22be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/map/ContactsLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
return this.contacts.filter((c) => {
if (c.GROUPS) {
try {
const cGroups = c.GROUPS.split(/[^\\],/).map((name) => {
const cGroups = c.GROUPS.split(/(?<!\\),/).map((name) => {
return name.replace('\\,', ',')
})
for (let i = 0; i < cGroups.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ export default {
c.groupList = []
if (c.GROUPS) {
try {
const cGroups = c.GROUPS.split(/[^\\],/).map((name) => {
const cGroups = c.GROUPS.split(/(?<!\\),/).map((name) => {
return name.replace('\\,', ',')
})
if (cGroups.length > 0) {
Expand Down

0 comments on commit 5d22be5

Please sign in to comment.