Skip to content

Commit 13e71eb

Browse files
committed
fixup! Force disabling single-quote list for type parameter
1 parent 285e0bb commit 13e71eb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/models/contact.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import store from '../store'
2828
import updateDesignSet from '../services/updateDesignSet'
2929
import sanitizeSVG from '@mattkrick/sanitize-svg'
3030

31-
window.ICAL = ICAL
32-
3331
/**
3432
* Check if the given value is an empty array or an empty string
3533
*
@@ -568,4 +566,10 @@ export default class Contact {
568566
}
569567
}
570568

569+
toStringStripQuotes() {
570+
const regexp = /TYPE="([a-zA-Z-,]+)"/gm
571+
const card = this.vCard.toString()
572+
return card.replaceAll(regexp, card)
573+
}
574+
571575
}

src/store/contacts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const actions = {
353353
rev.fromUnixTime(Date.now() / 1000)
354354
contact.rev = rev
355355

356-
const vData = contact.vCard.toString()
356+
const vData = contact.toStringStripQuotes()
357357

358358
// if no dav key, contact does not exists on server
359359
if (!contact.dav) {

0 commit comments

Comments
 (0)