34 lines
1.8 KiB
TypeScript
34 lines
1.8 KiB
TypeScript
/* 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] */;
|