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

Function hasEncodingIssues

qr/qr.ts:102–108  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

100 /[\uFFFD]/.test(text); // 检测替换字符
101}
102
103// 解码二维码
104async function decodeQRCode(imageBuffer: Buffer): Promise<string[]> {
105 await ensureDependencies();
106
107 const tempFile = join(tmpdir(), `qr_decode_${Date.now()}.png`);
108
109 try {
110 // 保存图片到临时文件
111 writeFileSync(tempFile, imageBuffer);

Callers 1

decodeQRCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected