1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

Add eslint (#1437)

This commit is contained in:
Oscar Hinton
2022-02-24 12:10:07 +01:00
committed by GitHub
parent 01f128a4a9
commit 1c495e87c9
189 changed files with 4790 additions and 3371 deletions

View File

@@ -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);