mirror of
https://github.com/nextcloud/server.git
synced 2026-03-20 01:23:22 -04:00
Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
14 lines
412 B
JavaScript
14 lines
412 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
/**
|
|
* @param {any} name -
|
|
*/
|
|
export default function getURLParameter(name) {
|
|
return decodeURIComponent(
|
|
// eslint-disable-next-line no-sparse-arrays
|
|
(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ''])[1].replace(/\+/g, '%20'),
|
|
) || ''
|
|
}
|