commit 5525bdf1c3340ccddc9b1d626dcb097f41e69384
parent 0c76afb69c789d80fbbaf853e72e3eecbba45b7f
Author: Matthias Balk <matthias.balk@fotopuzzle.de>
Date: Wed, 17 Jun 2020 11:12:24 +0200
more character substitions for event's filename
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands.py b/src/commands.py
@@ -43,7 +43,7 @@ def _get_input(key):
def _event2file(event):
filename = '%s-%s.ics' % (event['DTSTART'].strftime('%Y-%m-%d'),
- re.sub(r'(/|\s)+', '-',
+ re.sub(r'([/:-]|\s)+', '-',
event['SUMMARY'].lower()))
f = open(os.path.join(config.CAL_DIR, filename), 'w')
f.write('BEGIN:VCALENDAR\nVERSION:2.0\n')