MCPcopy Index your code
hub / github.com/jackvale/rectg / getItemId

Function getItemId

web/build-data.js:71–75  ·  view source on GitHub ↗
(title, url)

Source from the content-addressed store, hash-verified

69 }
70
71 function getItemId(title, url) {
72 const telegram = getTelegramParts(url);
73 if (telegram?.id) return telegram.id;
74 return title.replace(/[^a-zA-Z0-9\u4e00-\u9fa5]/g, '').toLowerCase();
75 }
76
77 function normalizeItem(item) {
78 if (!item) return item;

Callers 3

normalizeItemFunction · 0.85
parseTableRowFunction · 0.85
mainFunction · 0.85

Calls 1

getTelegramPartsFunction · 0.85

Tested by

no test coverage detected