braintree / sanitize-url

MIT License
312 stars 35 forks source link

Fix: Check if url is null before proceeding #10

Closed jLouzado closed 5 years ago

crookedneighbor commented 5 years ago

Released in v3.0.0

jLouzado commented 5 years ago

@crookedneighbor sorry to flog a dead horse but after doing a little more debugging I feel like my solution here is wrong; it might be better to explicitly throw a TypeError saying that the String is null.

Right now, if v3.0.0 is in use the app won't break or throw an error or anything and it'll require an additional test to see what happens.

jLouzado commented 5 years ago

I was going to submit a second PR but got a little busy over the holidays 🙈