mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			244 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			244 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
const validator = require('express-validator');
 | 
						|
 | 
						|
module.exports = function() {
 | 
						|
    return validator({
 | 
						|
        customValidators: {
 | 
						|
            isUrlFriendlyName: input => encodeURIComponent(input) === input,
 | 
						|
        },
 | 
						|
    });
 | 
						|
};
 |