Oops, minor path regex fix

Escape those dots!
This commit is contained in:
Emi Matchu 2021-05-27 18:41:01 -07:00
parent f932498066
commit 598858c084

View file

@ -1,11 +1,11 @@
{ {
"routes": [ "routes": [
{ {
"src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600).png", "src": "/outfits/(?<id>[^/]+)/(?<size>150|300|600)\\.png",
"dest": "/api/outfitImage.js?size=$size&id=$id" "dest": "/api/outfitImage.js?size=$size&id=$id"
}, },
{ {
"src": "/outfits/(?<id>[^/]+)/v/(?<updatedAt>[^/]+)/(?<size>150|300|600).png", "src": "/outfits/(?<id>[^/]+)/v/(?<updatedAt>[^/]+)/(?<size>150|300|600)\\.png",
"dest": "/api/outfitImage.js?size=$size&id=$id&updatedAt=$updatedAt" "dest": "/api/outfitImage.js?size=$size&id=$id&updatedAt=$updatedAt"
}, },
{ "src": "/outfits/new(\\?|$)", "dest": "/index.html" }, { "src": "/outfits/new(\\?|$)", "dest": "/index.html" },