Skip to content

Commit e78a85a

Browse files
committed
Account for develop/master branches in docs regex (#1984)
1 parent 5f022ac commit e78a85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_context_data(self, **kwargs):
4242
current_version_kwargs.update(
4343
{
4444
"content_path": re.sub(
45-
r"([_0-9]+)/(\S+)",
45+
r"([_0-9]+|master|develop)/(\S+)",
4646
rf"{LATEST_RELEASE_URL_PATH_STR}/\2",
4747
current_version_kwargs.get("content_path"),
4848
)

0 commit comments

Comments
 (0)