60 lines
3.5 KiB
TypeScript
60 lines
3.5 KiB
TypeScript
/* Metro module 8788; source: utils/ValidationUtils.tsx; dependencies: [2] */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun68715(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:6, offset: 0x01c59e9b, size: 260 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = RegExp('^([\\w-+]+(?:\\.[\\w-+]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,63}(?:\\.[a-z]{2})?)$',
|
|
'i');
|
|
const env0_1 = RegExp('^((https:\\/\\/)?(discord\\.gg\\/)|(discord\\.com\\/)(invite\\/)?)?[A-Za-z0-9]{8,8}$', '');
|
|
const env0_2 = RegExp('^(\\+\\d{1,2}\\s)?\\(?\\d{3}\\)?[\\s.-]?\\d{3}[\\s.-]?\\d{4}$', '');
|
|
const env0_3 = RegExp('^(.*)#[0-9]{1,5}$', '');
|
|
const env0_4 = RegExp('^(https:\\/\\/)?(discord\\.com\\/discovery\\/game\\/)([0-9-]+)\\/?', '');
|
|
const env0_5 = ['@', '#', ':', '```', 'discord', 'hypesquad', 'system message', 'system mesage', 'sustem message',
|
|
'sustem mesage'];
|
|
const env0_6 = ['discordtag', 'everyone', 'here', 'discord nitro', 'discord'];
|
|
object = {isEmail: isEmail, isInvite: isInvite, isPhoneNumber: isPhoneNumber, isUserTagLike: isUserTagLike,
|
|
isDiscoveryLink: isDiscoveryLink};
|
|
(FileImportTrackerModule).fileFinishedImporting('utils/ValidationUtils.tsx');
|
|
exports.default = object;
|
|
function isEmail(a0) { // fn#68716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:596, offset: 0x01c59f9f, size: 22 bytes, params: 2, frame: 11
|
|
return env0_0.test(a0);
|
|
}
|
|
|
|
function isInvite(a0) { // fn#68717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:643, offset: 0x01c59fb5, size: 22 bytes, params: 2, frame: 11
|
|
return env0_1.test(a0);
|
|
}
|
|
|
|
function isPhoneNumber(a0) { // fn#68718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:696, offset: 0x01c59fcb, size: 22 bytes, params: 2, frame: 11
|
|
return env0_2.test(a0);
|
|
}
|
|
|
|
function isUserTagLike(a0) { // fn#68719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:754, offset: 0x01c59fe1, size: 100 bytes, params: 2, frame: 13
|
|
var property;
|
|
var value3;
|
|
let binding = env0_3;
|
|
const value2 = binding.exec(a0);
|
|
if (value2 != null) {
|
|
if (value2.length > 1) {
|
|
property = value2[1];
|
|
binding = env0_5;
|
|
value3 = binding.some(_fun68720);
|
|
binding = env0_6;
|
|
return !value3 && !binding.includes(property);
|
|
}
|
|
}
|
|
return false;
|
|
function _fun68720(a0) { // fn#68720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:841, offset: 0x00d72b3e, size: 22 bytes, params: 2, frame: 11
|
|
return env0_0.includes(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function isDiscoveryLink(a0) { // fn#68721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8973:915, offset: 0x01c5a045, size: 22 bytes, params: 2, frame: 11
|
|
return env0_4.test(a0);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68715, 8788, [2]) /* metro module 8788, dependencies: [2] */;
|