2026-08-08 06:10:11 +00:00
|
|
|
|
// Module ID: 4987
|
|
|
|
|
|
// Function ID: 4988
|
2026-07-20 16:05:17 +00:00
|
|
|
|
// Name: removePunctuation
|
2026-07-23 10:11:24 +00:00
|
|
|
|
// Dependencies: [2]
|
2026-07-29 08:29:29 +00:00
|
|
|
|
// Exports: getQueriesFromUserInput, removePunctuation
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
2026-08-08 06:10:11 +00:00
|
|
|
|
// Module 4987 (removePunctuation)
|
2026-07-23 10:11:24 +00:00
|
|
|
|
const re0 = /(!|\.|;|,|-|—|–|\?|"|')/g;
|
|
|
|
|
|
const re1 = /(\n|\t|\s)/g;
|
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/stickers/StickersSuggestionUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
|
export const removePunctuation = function removePunctuation(str) {
|
|
|
|
|
|
return str.replace(closure_0, "").replace(closure_1, " ");
|
|
|
|
|
|
};
|
|
|
|
|
|
export const getQueriesFromUserInput = function getQueriesFromUserInput(str) {
|
|
|
|
|
|
if (null == str) {
|
2026-07-20 16:05:17 +00:00
|
|
|
|
let items = [];
|
|
|
|
|
|
} else {
|
2026-07-29 08:29:29 +00:00
|
|
|
|
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();
|
2026-07-20 16:05:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
return items;
|
|
|
|
|
|
};
|