Skip to content

Commit 6c3068f

Browse files
committed
Fix regular expression
1 parent 1c32d2e commit 6c3068f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function add_version_dropdown(json_loc, target_loc, text) {
8787
const currentURL = window.location.href;
8888

8989
// Check whether the user is currently on a resource page (e.g., is viewing the specification for a particular function):
90-
let path = currentURL.split(/_site|array_api/)[1];
90+
let path = currentURL.split(/_site|array\-api/)[1];
9191

9292
// Extract the resource subpath:
9393
if (path) {

0 commit comments

Comments
 (0)