Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #37 from spotify/custom-query-parser
Browse files Browse the repository at this point in the history
feature(parser) - add a new ability to add a custom parser
  • Loading branch information
joshbDev authored Dec 12, 2019
2 parents e6ae0c5 + a3eb221 commit 581b343
Show file tree
Hide file tree
Showing 10 changed files with 893 additions and 830 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,18 @@ Some libraries (like immutable.js) won't allow you to use lodash's `get` functio
}
```

### Overwrite query parser

By default, the parser for query params will split on `=`, however, this doesn't take into account that there may be other `=` in the query param value. There also may need to be other ways to split query parameters, so you can now also pass in your own custom query param parser, like so:

```javascript
{
RLSCONFIG: {
queryParser: (q) => (q.split('='))
}
}
```


## Development

Expand Down
Loading

0 comments on commit 581b343

Please sign in to comment.