✅ Add more unit tests for helpers.js (#4536)

This commit is contained in:
Billy Richardson authored and GitHub committed 2022-06-08 12:03:23 +02:00
1 parent 64ad527753
commit 10ec9cd4e4
3 files changed
+749 -76

No files matched your search

+1 -1
View File
@@ -1497,7 +1497,7 @@ var sizeObservable = function (observable) {
var getQueryParameterByName = function (name, url) {
// from http://stackoverflow.com/a/901144/2028598
if (!url) {
url = window.location.href;
url = fetchWindowLocation().href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),