Files
discord-decomp/sources/modules/suppress_notifications/parseContentForSuppressNotifications.tsx
T
2026-07-27 16:20:00 +03:00

26 lines
1.3 KiB
TypeScript

/* Metro module 7077; source: modules/suppress_notifications/parseContentForSuppressNotifications.tsx; dependencies: [2] */
function _fun56477(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7255:6, offset: 0x013c90e5, size: 154 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const RegExp = global.RegExp;
const regExp = new RegExp('^' + '@silent' + '(\\s|$)');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/suppress_notifications/parseContentForSuppressNotifications.tsx');
exports.default = parseContentForSuppressNotifications;
exports.SILENT_RE = regExp;
}
function parseContentForSuppressNotifications(a0) { // fn#56478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7255:252, offset: 0x013c917f, size: 113 bytes, params: 2, frame: 12
var items;
var value;
if (a0 == null) {
items = [false, ''];
} else if (a0.match(env0_0) == null) {
items = [false, a0];
} else {
value = a0.substring(7);
items = [true, value.trim()];
}
return items;
}