Skip to content

Commit

Permalink
Temporarily add parseQueryParams
Browse files Browse the repository at this point in the history
This is a placeholder until elastic#83750 lands
  • Loading branch information
scottybollinger committed Nov 19, 2020
1 parent bce570c commit c7c4bd2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export { parseQueryParams } from './query_params';
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import queryString from 'query-string';

export const parseQueryParams = (search: string) =>
queryString.parse(search, { arrayFormat: 'bracket' });

0 comments on commit c7c4bd2

Please sign in to comment.