decord/source/modules/stickers/StickersSuggestionUtils.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

27 lines
895 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Module ID: 5351
// Function ID: 5352
// Name: StickersSuggestionUtils
// Dependencies: [2]
// Exports: getQueriesFromUserInput, removePunctuation
// Module 5351 (StickersSuggestionUtils)
import size from "module_2" /* 2 */;
const re0 = /(!|\.|;|,|-|—|–|\?|"|')/g;
const re1 = /(\n|\t|\s)/g;
const result = size.fileFinishedImporting("modules/stickers/StickersSuggestionUtils.tsx");
export const removePunctuation = function removePunctuation(str) {
return str.replace(re0, "").replace(re1, " ");
};
export const getQueriesFromUserInput = function getQueriesFromUserInput(str) {
if (null == str) {
let items = [];
} else {
const str2 = str.replace(re0, "");
const str4 = str.replace(re0, "").replace(re1, " ");
items = str.replace(re0, "").replace(re1, " ").trim().split(" ");
const str5 = str.replace(re0, "").replace(re1, " ").trim();
}
return items;
};