diff --git a/ensure_sorted.py b/ensure_sorted.py index 50b6683c..c702a8a2 100755 --- a/ensure_sorted.py +++ b/ensure_sorted.py @@ -19,7 +19,7 @@ def __init__(self, name): self.apps = [] def add_app(self, app_str: str): - matches = re.findall("(?<=\\[\\*\\*).*(?=\\*\\*\\])", app_str) + matches = re.findall("(?<=\\[\\*\\*)[^*]+(?=\\*\\*\\])", app_str) if len(matches) != 1: raise RuntimeError("These should be only one match") app_name = matches[0]