Ghost/test/unit/server/web/shared/middleware
Naz da9f018c70 🐛 Fixed theme activation with capitalized names
closes https://github.com/TryGhost/Team/issues/1420
refs da0dee548c
refs https://github.com/TryGhost/Toolbox/issues/169

- After introducing non-versioned API urls the "isAPI" regex failed to pass the test as it was expecting a `canary/vX` in the API URL. This caused "uncapitalization" to stop working for API requests.
- Regex visualizer for quick reference: https://jex.im/regulex/#!flags=&re=%5E(.*%5C%2Fghost%5C%2Fapi(%5C%2F(v%5B%5Cd.%5D%2B%7Ccanary))%3F%5C%2F.*%3F%5C%2F)
2022-03-09 20:07:04 +13:00
..
api Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
brute.test.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
cache-control.test.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00
uncapitalise.test.js 🐛 Fixed theme activation with capitalized names 2022-03-09 20:07:04 +13:00
url-redirects.test.js Renamed middlewares to middleware consistently 2021-11-16 15:51:47 +00:00