diff options
Diffstat (limited to 'core/src/OC/query-string.js')
-rw-r--r-- | core/src/OC/query-string.js | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/core/src/OC/query-string.js b/core/src/OC/query-string.js index 33a51505ae8..df0f366133a 100644 --- a/core/src/OC/query-string.js +++ b/core/src/OC/query-string.js @@ -1,30 +1,15 @@ /** - * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. + * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ import $ from 'jquery' /** * Parses a URL query string into a JS map + * * @param {string} queryString query string in the format param1=1234¶m2=abcde¶m3=xyz - * @returns {Object.<string, string>} map containing key/values matching the URL parameters + * @return {Record<string, string>} map containing key/values matching the URL parameters */ export const parse = queryString => { let pos @@ -72,8 +57,9 @@ export const parse = queryString => { /** * Builds a URL query from a JS map. - * @param {Object.<string, string>} params map containing key/values matching the URL parameters - * @returns {string} String containing a URL query (without question) mark + * + * @param {Record<string, string>} params map containing key/values matching the URL parameters + * @return {string} String containing a URL query (without question) mark */ export const build = params => { if (!params) { |