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

Method removeEmoji

outdated/gemini/gemini.ts:180–195  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

178 }
179
180 static removeEmoji(text: string): string {
181 return text
182 .replace(/[\u{1F600}-\u{1F64F}]/gu, '')
183 .replace(/[\u{1F300}-\u{1F5FF}]/gu, '')
184 .replace(/[\u{1F680}-\u{1F6FF}]/gu, '')
185 .replace(/[\u{1F1E0}-\u{1F1FF}]/gu, '')
186 .replace(/[\u{1F900}-\u{1F9FF}]/gu, '')
187 .replace(/[\u{1FA00}-\u{1FA6F}]/gu, '')
188 .replace(/[\u{1FA70}-\u{1FAFF}]/gu, '')
189 .replace(/[\u{2600}-\u{26FF}]/gu, '')
190 .replace(/[\u{2700}-\u{27BF}]/gu, '')
191 .replace(/[\u{1F780}-\u{1F7FF}]/gu, '')
192 .replace(/[\u{1F800}-\u{1F8FF}]/gu, '')
193 .replace(/[\u{FE0F}\u{200D}]/gu, '')
194 .trim();
195 }
196
197 static validateConfig(key: string, value: string): { isValid: boolean; error?: string } {
198 if (value.length > 10000) {

Callers 2

extractQuestionFromArgsFunction · 0.80
handleGeminiRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected