Commit 29580011 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

Merge branch 'MLAB-576' into 'testing'

add a new function

See merge request !125
3 merge requests!143deploy to production,!142prepare deployment,!125add a new function
Pipeline #5003 passed with stage
in 13 seconds
Showing with 11 additions and 0 deletions
+11 -0
......@@ -6,4 +6,15 @@ function checkPasswordReq(pwd) {
isBest = true;
}
return isBest
}
// to get the queries of the URL
function getQueryStringParams(params, url) {
// first decode URL to get readable data
var href = decodeURIComponent(url || window.location.href);
// regular expression to get value
var regEx = new RegExp('[?&]' + params + '=([^&#]*)', 'i');
var value = regEx.exec(href);
// return the value if exist
return value ? value[1] : null;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment