Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove quotes from title

authored by

Felix Schneider and committed by
GitHub
30e898de ac9f2b71

+2 -2
+2 -2
src/lib/events.ts
··· 30 30 } 31 31 32 32 function sanitizeBrand(text: string): string { 33 - return text.replace(/npmx/gi, "npmx"); 33 + return cleanText.replace(/npmx/gi, "npmx").trim().replace(/^["'„“]+|["'”„“]+$/g, ""); 34 34 } 35 35 36 36 async function requestInference(payload: object) { ··· 221 221 max_tokens: 30, 222 222 }); 223 223 224 - return sanitizeBrand(data.choices[0].message.content.trim()); 224 + return sanitizeBrand(data.choices[0].message.content); 225 225 } catch { 226 226 LOG.error("Failed to generate title"); 227 227 return sanitizeBrand(topic.title);