MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sanitizeInput

Method sanitizeInput

scripts/update-template.js:251–256  ·  view source on GitHub ↗

* 清理和规范化输入 * @param {string} text * @returns {string}

(text)

Source from the content-addressed store, hash-verified

249 * @returns {string}
250 */
251 static sanitizeInput(text) {
252 if (!text) return '';
253 return text
254 .replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '') // 移除控制字符
255 .trim();
256 }
257}
258
259/**

Callers 1

generateContentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected