0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Refactored variable name to match intent

no issue
This commit is contained in:
Daniel Lockyer 2020-02-20 11:56:01 +00:00
parent 55bd1cdd6b
commit 6dcb1094aa

View file

@ -4,14 +4,14 @@ const storage = require('../../../../adapters/storage');
const activeTheme = require('../../../../../frontend/services/themes/active');
const SIZE_PATH_REGEX = /^\/size\/([^/]+)\//;
const NO_TRAILING_SLASH_REGEX = /\/+$/;
const TRAILING_SLASH_REGEX = /\/+$/;
module.exports = function (req, res, next) {
if (!SIZE_PATH_REGEX.test(req.url)) {
return next();
}
if (NO_TRAILING_SLASH_REGEX.test(req.url)) {
if (TRAILING_SLASH_REGEX.test(req.url)) {
return next();
}