decord/source/4797_removePunctuation.js
2026-07-20 16:05:17 +00:00

26 lines
805 B
JavaScript
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: 4797
// Function ID: 41653
// Name: removePunctuation
// Dependencies: []
// Exports: getQueriesFromUserInput
// Module 4797 (removePunctuation)
function removePunctuation(str) {
return str.replace(closure_0, "").replace(closure_1, " ");
}
let closure_0 = /(!|\.|;|,|-|—|–|\?|"|')/g;
let closure_1 = /(\n|\t|\s)/g;
const _module = require(dependencyMap[0]);
const result = _module.fileFinishedImporting("modules/stickers/StickersSuggestionUtils.tsx");
export { removePunctuation };
export const getQueriesFromUserInput = function getQueriesFromUserInput(arg0) {
if (null == arg0) {
let items = [];
} else {
const str = removePunctuation(arg0);
items = removePunctuation(arg0).trim().split(" ");
const str2 = removePunctuation(arg0).trim();
}
return items;
};