"use strict";

function checkTabTitle(newTitle) {
    return newTitle ? newTitle.length > 100 ? "工作表名称不能超过100个字符" : /[\\/:*?"<>|]/.test(newTitle) ? "工作表名称不能包含特殊字符，如/ \\ ? * [ ] : |" : null : "工作表名称不能为空";
}

function isPropertyWritable(obj, prop) {
    const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
    return !!descriptor && (!!descriptor.set || !0 === descriptor.writable);
}

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.isPropertyWritable = exports.checkTabTitle = void 0, exports.checkTabTitle = checkTabTitle, 
exports.isPropertyWritable = isPropertyWritable;
//# sourceMappingURL=index.js.map