Skip to content

Commit

Permalink
doc: fix to known issues py script
Browse files Browse the repository at this point in the history
Updating regex in the py file to match mjs.

Signed-off-by: Bartosz Gentkowski <[email protected]>
  • Loading branch information
b-gent committed Jan 16, 2025
1 parent 8b83cf2 commit 79b807c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/_extensions/page_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 79b807c

Please sign in to comment.