/**
 * Created by baoyinghai on 4/1/17.
 */
import { templeteTypes } from '../pageContainer/config';

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

// 授信评估申请
export const isApply = str => {
  const reg = createRegex('Apply');
  return reg.test(str);
};

// 授信评估审核
export const isReview = str => {
  const reg = createRegex('Review');
  return reg.test(str);
};
