21 lines
1.3 KiB
TypeScript
21 lines
1.3 KiB
TypeScript
/* Metro module 9388; source: modules/connections/FederatedSocialUtils.tsx; dependencies: [661, 2] */
|
|
function _fun73234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9574:6, offset: 0x01d63d5d, size: 122 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/connections/FederatedSocialUtils.tsx');
|
|
exports.validateHandle = function(a0, a1) {
|
|
if (a1 === PlatformTypes.MASTODON) {
|
|
RegExp('^@?[a-z0-9_]+([.-]+[a-z0-9_]+)*@[^@]+\\.[^.@]{2,}$', 'i').test(a0);
|
|
}
|
|
return RegExp('^.+\\.[^.@]{2,}$', '').test(a0);
|
|
};
|
|
exports.getExampleHandle = getExampleHandle;
|
|
}
|
|
|
|
function getExampleHandle(a0) { // fn#73236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9574:374, offset: 0x01d63e20, size: 57 bytes, params: 2, frame: 4
|
|
const MASTODON = PlatformTypes.MASTODON;
|
|
return a0 === MASTODON ? '@[email protected]' : a0 !== PlatformTypes.BLUESKY ? '[email protected]' : 'example.bsky.social';
|
|
}
|
|
|