Handle double slash in splash pattern

This fixes https://github.com/LLK/scratchr2/issues/4195 by updating the regex to catch two slashes. I decided to intentionally not catch more than 2 – it’ll 404 on 3 or more, which seems appropriate.
This commit is contained in:
Matthew Taylor 2016-12-08 10:19:17 -05:00
parent 11828d2d44
commit b1595caa95

View file

@ -1,7 +1,7 @@
[
{
"name": "splash",
"pattern": "^/?$",
"pattern": "^/{1,2}?$",
"routeAlias": "/?$",
"view": "splash/splash",
"title": "Imagine, Program, Share"