Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse url correctly #7

Merged
merged 3 commits into from
May 22, 2021

Conversation

udaraweerasinghege
Copy link
Contributor

Addresses : #6

PlaidLink.tsx Outdated
const eventParams = queryString.parse(event.url)
const eventParams = queryString.parse(
event.url.replace(
/plaidlink:\/\/event|plaidlink:\/\/exit|plaidlink:\/\/connected/gi,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this works, is this going to be a bit fragile? Like if they add something other than event, exit, or connected it will break. Can we just search for everything after and including the ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I updated to just replace everything up to and including the ?. I confirmed this works with queryString.

@defrex
Copy link

defrex commented May 19, 2021

I'd love to see this merged, as it currently prevents this library from functioning.

@JBaczuk JBaczuk merged commit a4b0826 into burstware:master May 22, 2021
@JBaczuk
Copy link
Contributor

JBaczuk commented May 22, 2021

@defrex @udaraweerasinghege published as v1.0.3!

@mellertson
Copy link

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants