diff --git a/beacon/connections/mongo/filters.py b/beacon/connections/mongo/filters.py index 50dfe8a..8fb0367 100644 --- a/beacon/connections/mongo/filters.py +++ b/beacon/connections/mongo/filters.py @@ -677,7 +677,7 @@ def apply_alphanumeric_filter(self, query: dict, filter: AlphanumericFilter, col elif filter.value == 'Y': dict_regex['$regex']='^NC_0000'+'24' else: - dict_regex['$regex']='^NC_0000'+filter.value + dict_regex['$regex']='^NC_0000'+filter.value+'.'+'10:g'+'|'+'^NC_0000'+filter.value+'.'+'11:g'+'|'+'^NC_0000'+filter.value+'.'+'9:g' elif '>' in filter.value:# pragma: no cover dict_regex=filter.value elif '.' in filter.value:# pragma: no cover