Source

validators/isRepoBranchName.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 branch name of a repository
 *
 * @param value
 * @category validators
 * @module isRepoBranchName
 */
var isRepoBranchName = function (value) { return REGEX.test(value); };
exports.default = isRepoBranchName;