"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/lib/format-message"));

var _constants = require("@instructure/quiz-common/lib/constants");

var _default = function _default(val, options) {
  var limit = options.limit || _constants.BUILD_CHAR_LIMIT;

  if (val && JSON.stringify(val).length > limit) {
    return "\u8D85\u51FA\u6700\u5927\u5185\u5BB9\u9650\u5236";
  }
};

exports.default = _default;