From 48b6cf77e1c12283f428361b73657afd913f474b Mon Sep 17 00:00:00 2001 From: djstrong Date: Thu, 4 Feb 2021 09:57:56 +0100 Subject: [PATCH] Fix warning #147 --- lime/lime_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lime/lime_text.py b/lime/lime_text.py index 7055a9b59..9744a409e 100644 --- a/lime/lime_text.py +++ b/lime/lime_text.py @@ -110,7 +110,7 @@ def non_word(string): else: # with the split_expression as a non-capturing group (?:), we don't need to filter out # the separator character from the split results. - splitter = re.compile(r'(%s)|$' % split_expression) + splitter = re.compile(r'(%s)' % split_expression) self.as_list = [s for s in splitter.split(self.raw) if s] non_word = splitter.match