File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ import store from '../store'
28
28
import updateDesignSet from '../services/updateDesignSet'
29
29
import sanitizeSVG from '@mattkrick/sanitize-svg'
30
30
31
- window . ICAL = ICAL
32
-
33
31
/**
34
32
* Check if the given value is an empty array or an empty string
35
33
*
@@ -568,4 +566,10 @@ export default class Contact {
568
566
}
569
567
}
570
568
569
+ toStringStripQuotes ( ) {
570
+ const regexp = / T Y P E = " ( [ a - z A - Z - ,] + ) " / gm
571
+ const card = this . vCard . toString ( )
572
+ return card . replaceAll ( regexp , card )
573
+ }
574
+
571
575
}
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ const actions = {
353
353
rev . fromUnixTime ( Date . now ( ) / 1000 )
354
354
contact . rev = rev
355
355
356
- const vData = contact . vCard . toString ( )
356
+ const vData = contact . toStringStripQuotes ( )
357
357
358
358
// if no dav key, contact does not exists on server
359
359
if ( ! contact . dav ) {
You can’t perform that action at this time.
0 commit comments