Source

validators/isDirName.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var isURLSafeStr_1 = require("./isURLSafeStr");
var REGEX = new RegExp("^(/|((/?".concat(isURLSafeStr_1.URL_SAFE_REGEX_STR, ")(/").concat(isURLSafeStr_1.URL_SAFE_REGEX_STR, ")*))$"), 'i');
/**
 * Whether it is a directory name
 *
 * @param value
 * @category validators
 * @module isDirName
 */
var isDirName = function (value) { return REGEX.test(value); };
exports.default = isDirName;