Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Allow url-pattern options to be specified on routes #136

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

davidfraser
Copy link

url-pattern works neatly for specifying parameters. However, its default options make various presumptions (notably what characters can be included in a parameter). See #107, #41 for previous issues relating to this

This patch allows a simple extra patternOptions to be specified on a route; these options are passed through directly to the pattern on creation.

@codecov-io
Copy link

codecov-io commented Jan 31, 2017

Codecov Report

Merging #136 into master will not impact coverage.

@@           Coverage Diff           @@
##           master     #136   +/-   ##
=======================================
  Coverage   98.26%   98.26%           
=======================================
  Files          19       19           
  Lines         231      231           
=======================================
  Hits          227      227           
  Misses          4        4
Impacted Files Coverage Δ
src/create-matcher.js 100% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05ec969...9b80e1d. Read the comment docs.

David Fraser added 4 commits January 31, 2017 22:23
Note that this reveals the unintended side-effect that the `patternOptions` are included in the matching `route`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants