diff --git a/sphinx_versioned/__main__.py b/sphinx_versioned/__main__.py index 7f7f1f7..98637a4 100755 --- a/sphinx_versioned/__main__.py +++ b/sphinx_versioned/__main__.py @@ -113,7 +113,7 @@ def main( :class:`sphinx_versioned.build.VersionedDocs` """ if select_branches: - select_branches = re.split(",|\ ", select_branches) + select_branches = re.split("[,|\ ]+", select_branches) EventHandlers.RESET_INTERSPHINX_MAPPING = reset_intersphinx_mapping