1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/lib/middleware/validator.js

12 lines
244 B
JavaScript
Raw Normal View History

'use strict';
const validator = require('express-validator');
module.exports = function() {
return validator({
customValidators: {
isUrlFirendlyName: input => encodeURIComponent(input) === input,
},
});
};