lib/validator.js
function isException(url, exceptions) {
	if (exceptions && Array.isArray(exceptions)) {
		for (let i = 0; i < exceptions.length; i++) {
			if ((new RegExp(exceptions[i])).test(expressUtility.getBaseRoute(url))) {
				// Found exception
				return true;
			}
		}
	}
	return false;
}
function isException(url, exceptions) {
	if (exceptions && Array.isArray(exceptions)) {
		for (let i = 0; i < exceptions.length; i++) {
			if ((new RegExp(exceptions[i])).test(expressUtility.getBaseRoute(url))) {
				// Found exception
				return true;
			}
		}
	}
	return false;
}
function isException ( url , exceptions ) { if ( exceptions && Array . isArray ( exceptions ) ) { for ( let i = 0 ; i < exceptions . length ; i ++ ) { if ( ( new RegExp ( exceptions [ i ] ) ) . test ( expressUtility . getBaseRoute ( url ) ) ) { // Found exception return true ; } } } return false ; }
Determines if the current route is an exception and thus will not be considered missing.
@param {string} url
@param {Array<string>} exceptions
Determines if the current route is an exception and thus will not be considered missing .