diff --git a/luscenje_struktur/restriction.py b/luscenje_struktur/restriction.py index 37bef44..893dbbb 100644 --- a/luscenje_struktur/restriction.py +++ b/luscenje_struktur/restriction.py @@ -139,13 +139,13 @@ class SpaceRegex: def __call__(self, word): match = False - if 'both' in self.space: - match = match or (word.previous_glue != '' and word.glue != '') - if 'right' in self.space: - match = match or (word.previous_glue == '' and word.glue != '') - if 'left' in self.space: - match = match or (word.previous_glue != '' and word.glue == '') if 'neither' in self.space: + match = match or (word.previous_glue != '' and word.glue != '') + if 'left' in self.space: + match = match or (word.previous_glue == '' and word.glue != '') + if 'right' in self.space: + match = match or (word.previous_glue != '' and word.glue == '') + if 'both' in self.space: match = match or (word.previous_glue == '' and word.glue == '') return match