preact-router icon indicating copy to clipboard operation
preact-router copied to clipboard

Feature: accept regular expression matching

Open mingard opened this issue 8 years ago • 2 comments
trafficstars

Overview

For more specific route matching, this PR introduces a basic regex match execution.

Example paginated posts: posts/:page?[^\d+$] single post: posts/:title?

This is only an interim measure to satisfy a project requirement, so I'm open to suggestions.

mingard avatar Aug 15 '17 13:08 mingard

Might have odd interplay with the match ordering from #136

developit avatar Aug 23 '17 14:08 developit

@developit I'll run some tests. It could prove benificial to introduce some acceptance tests ontop of the current unit tests.

mingard avatar Sep 14 '17 19:09 mingard