Files
discord-decomp/sources/modules/stickers/StickersSuggestionUtils.tsx
T
2026-07-28 01:06:53 +03:00

34 lines
1.8 KiB
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.
/* Metro module 4787; source: modules/stickers/StickersSuggestionUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun41351(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4965:6, offset: 0x0111cb29, size: 138 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = RegExp('(!|\\.|;|,|-|—|–|\\?|"|\')', 'g');
const env0_1 = RegExp('(\\n|\\t|\\s)', 'g');
const removePunctuation2 = removePunctuation;
(FileImportTrackerModule).fileFinishedImporting('modules/stickers/StickersSuggestionUtils.tsx');
exports.removePunctuation = removePunctuation2;
exports.getQueriesFromUserInput = getQueriesFromUserInput;
function removePunctuation(a0) { // fn#41352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4965:163, offset: 0x0111cbb3, size: 48 bytes, params: 2, frame: 14
return a0.replace(env0_0, '').replace(env0_1, ' ');
}
function getQueriesFromUserInput(a0) { // fn#41353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4965:339, offset: 0x0111cbe3, size: 57 bytes, params: 2, frame: 11
var r0;
var value;
if (a0 == null) {
r0 = [];
} else {
value = removePunctuation(a0);
value = value.trim();
value = value.split(' ');
r0 = value;
}
return r0;
}
}
global.__d(_fun41351, 4787, [2]) /* metro module 4787, dependencies: [2] */;