summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pykfx/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykfx/__init__.py b/pykfx/__init__.py
index 4ef55f1..cac268d 100644
--- a/pykfx/__init__.py
+++ b/pykfx/__init__.py
@@ -104,6 +104,9 @@ class Event:
def __str__(self):
return '%s: %s' % (self.kind.capitalize(), ','.join([getattr(self, x.lower()) for x in self.format]))
+ def get_stripped(self):
+ return re.sub(r'\{[^}]*\}', '', self.text)
+
def parse(self, s):
s = s.split(': ', 1)
self.kind = s[0].lower()