From c5833f14178fe03d3264ddb266c574f594f0cfce Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 25 Mar 2021 08:56:33 -0400 Subject: [PATCH] Reserve some characters for special syntax May need to modify some behaviors in future, provide a healthy supply of reserved characters toward that end. --- confluent_server/confluent/syncfiles.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_server/confluent/syncfiles.py b/confluent_server/confluent/syncfiles.py index ef291ffd..99396a3f 100644 --- a/confluent_server/confluent/syncfiles.py +++ b/confluent_server/confluent/syncfiles.py @@ -45,6 +45,10 @@ class SyncList(object): ent = ent[:cmtidx] except ValueError: pass + for special in '!@$%^&*()|{}': + if special in ent: + raise Exception( + 'Special character "{}" reserved for future use'.format(special)) ent = ent.strip() if not ent: continue