diff --git a/doc/_extensions/page_filter.py b/doc/_extensions/page_filter.py index 6488d08feb56..fcdfff233f01 100644 --- a/doc/_extensions/page_filter.py +++ b/doc/_extensions/page_filter.py @@ -225,7 +225,7 @@ def read_versions(app: Sphinx) -> None: with open(VERSIONS_FILE) as version_file: nrf_versions = json.loads(version_file.read()) nrf_versions = list( - filter(lambda v: re.match(r"\d\.\d\.\d$", v), nrf_versions) + filter(lambda v: re.match(r"\d+\.\d+\.\d+(-.*)?$", v), nrf_versions) ) # Versions classes are on the format "vX-X-X" app.env.nrf_versions = [