Files
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

20 lines
748 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.camelize = exports.isString = void 0;
var isString = function (val) { return typeof val === 'string'; };
exports.isString = isString;
var cacheStringFunction = function (fn) {
var cache = Object.create(null);
return (function (str) {
var hit = cache[str];
return hit || (cache[str] = fn(str));
});
};
var camelizeRE = /-(\w)/g;
exports.camelize = cacheStringFunction(function (str) {
return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });
});
// export const capitalize = cacheStringFunction(
// (str: string) => str.charAt(0).toUpperCase() + str.slice(1),
// )
//# sourceMappingURL=string.js.map