remove console.debug
This commit is contained in:
parent
dce6fc007a
commit
795a481aaa
1 changed files with 0 additions and 3 deletions
|
@ -8,18 +8,15 @@ async function process_text(text: string): Promise<string> {
|
||||||
const codes = new Set(matches.map(([_, code]) => code));
|
const codes = new Set(matches.map(([_, code]) => code));
|
||||||
console.log("[lmlfc-bttv]", `searching ${[...codes].length} emotes`);
|
console.log("[lmlfc-bttv]", `searching ${[...codes].length} emotes`);
|
||||||
const emotes = await map_parallel(codes, bttv_get_url);
|
const emotes = await map_parallel(codes, bttv_get_url);
|
||||||
console.debug("matches", matches, "codes", codes, "emotes", emotes);
|
|
||||||
|
|
||||||
for (const emote of matches.reverse()) {
|
for (const emote of matches.reverse()) {
|
||||||
const [match, code] = emote;
|
const [match, code] = emote;
|
||||||
console.debug("match", match, "code", code);
|
|
||||||
|
|
||||||
if (emote.index == undefined) continue;
|
if (emote.index == undefined) continue;
|
||||||
const index = emote.index;
|
const index = emote.index;
|
||||||
|
|
||||||
if (!emotes.has(code)) continue;
|
if (!emotes.has(code)) continue;
|
||||||
const url = emotes.get(code);
|
const url = emotes.get(code);
|
||||||
console.debug("index", index, "url", url);
|
|
||||||
|
|
||||||
text =
|
text =
|
||||||
text.substring(0, index) +
|
text.substring(0, index) +
|
||||||
|
|
Loading…
Reference in a new issue