mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
Add eslint (#1437)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
export function getQsParam(name: string) {
|
||||
const url = window.location.href;
|
||||
// eslint-disable-next-line
|
||||
name = name.replace(/[\[\]]/g, "\\$&");
|
||||
const regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
|
||||
const results = regex.exec(url);
|
||||
|
||||
Reference in New Issue
Block a user