function checkValidReplaceList(list) {
  var fail = list === null || list === void 0 ? void 0 : list.find(function (item) {
    return item.length !== 2;
  });
  if (fail) {
    throw new Error('替换数组不合法：', {
      cause: fail
    });
  }
}

export { checkValidReplaceList };
