Skip to content

Commit

Permalink
Merge branch 'feat/PD-4294-Stack-upgrade' of https://github.com/torus…
Browse files Browse the repository at this point in the history
…research/broadcast-channel into feat/PD-4294-Stack-upgrade
  • Loading branch information
hieu-w committed Jan 23, 2025
2 parents 602c671 + 86a56e3 commit 0f8c35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/scripts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://stackoverflow.com/a/901144/3443137
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
name = name.replace(/[\\[\]]/g, "\\$&");
const regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
const results = regex.exec(url);
if (!results) return null;
Expand Down

0 comments on commit 0f8c35d

Please sign in to comment.