UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 254 B
//!packages/normalization-core/src/code-points.ts function truncateCodePoints(e,t){const n=Math.max(0,Math.trunc(t)||0);if(e.length<=n)return e;const r=[];for(const t of e){if(r.length>=n)break;r.push(t)}return r.join(``)}export{truncateCodePoints as t};