kenchris / urlpattern-polyfill

URLPattern polyfill
https://www.npmjs.com/package/urlpattern-polyfill
MIT License
268 stars 31 forks source link

Add baseURL second arg support in test/exec and result.inputs. #11

Closed wanderview closed 3 years ago

wanderview commented 3 years ago

This pull request does the follow:

  1. Adds support for passing the base URL in the second argument to test() and exec() when the first argument is a string.
  2. Reflects the arguments back in URLPatternResult.inputs. This replaces the old input (singular) property.

This is an incremental step towards fixing #7.