decord/source/modules/stickers/StickersSuggestionUtils.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

27 lines
930 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: 5270
// Function ID: 5271
// Name: removePunctuation
// Dependencies: [2]
// Exports: getQueriesFromUserInput, removePunctuation
// Module 5270 (removePunctuation)
import set from "set" /* 2 */;
const re0 = /(!|\.|;|,|-|—|–|\?|"|')/g;
const re1 = /(\n|\t|\s)/g;
const result = set.fileFinishedImporting("modules/stickers/StickersSuggestionUtils.tsx");
export const removePunctuation = function removePunctuation(str) {
return str.replace(closure_0, "").replace(closure_1, " ");
};
export const getQueriesFromUserInput = function getQueriesFromUserInput(str) {
if (null == str) {
let items = [];
} else {
const str2 = str.replace(closure_0, "");
const str4 = str.replace(closure_0, "").replace(closure_1, " ");
items = str.replace(closure_0, "").replace(closure_1, " ").trim().split(" ");
const str5 = str.replace(closure_0, "").replace(closure_1, " ").trim();
}
return items;
};