'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isReview = exports.isApply = undefined;

var _config = require('../pageContainer/config');

var createRegex = function createRegex(key) {
  var append = _config.templeteTypes.join('|');
  return new RegExp('^.*\\w+' + key + '(' + append + ')/.*$');
};

// 授信评估申请
/**
 * Created by baoyinghai on 4/1/17.
 */
var isApply = exports.isApply = function isApply(str) {
  var reg = createRegex('Apply');
  return reg.test(str);
};

// 授信评估审核
var isReview = exports.isReview = function isReview(str) {
  var reg = createRegex('Review');
  return reg.test(str);
};