diff --git a/posthog/test/base.py b/posthog/test/base.py index 1958c630aa33d..0c40adacae97b 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -563,7 +563,7 @@ def assertQueryMatchesSnapshot(self, query, params=None, replace_all_numbers=Fal #### Cohort replacements # replace cohort id lists in queries too query = re.sub( - r"in((.*)?cohort_id, \[\d+(, ?\d+)*\])", + r"in((.*?)cohort_id, \[\d+(, ?\d+)*\])", r"in(\1cohort_id, [1, 2, 3, 4, 5 /* ... */])", query, )