mirror of
https://github.com/apache/superset.git
synced 2026-04-16 14:45:21 +00:00
ESLint: Re-enable rule no-restricted-globals (#10863)
* Re-enable rule no-restricted-globals * Fix missing semicolons
This commit is contained in:
committed by
GitHub
parent
7f1012360a
commit
1908a94c7e
@@ -65,7 +65,7 @@ export function getParam(name) {
|
||||
/* eslint no-useless-escape: 0 */
|
||||
const formattedName = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
||||
const regex = new RegExp(`[\\?&]${formattedName}=([^&#]*)`);
|
||||
const results = regex.exec(location.search);
|
||||
const results = regex.exec(window.location.search);
|
||||
return results === null
|
||||
? ''
|
||||
: decodeURIComponent(results[1].replace(/\+/g, ' '));
|
||||
|
||||
Reference in New Issue
Block a user