diff --git a/app/lib/babycode_parser.py b/app/lib/babycode_parser.py index 124f384..84a236a 100644 --- a/app/lib/babycode_parser.py +++ b/app/lib/babycode_parser.py @@ -193,9 +193,10 @@ class Parser: self.save_position() # extract printable chars (extreme hack edition) - word = self.match_pattern(r'[ -~]') + word = self.match_pattern(r'[!-~]') - if not re.match(PAT_LINK, word): + match = re.match(PAT_LINK, word) + if not match: self.restore_position() return None