RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/lib/getWebdavServerName.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IWebdavAccountIntegration } from '@rocket.chat/core-typings';

export const getWebdavServerName = ({ name, serverURL, username }: Omit<IWebdavAccountIntegration, '_id'>): string =>
    name || `${username}@${serverURL?.replace(/^https?\:\/\//i, '')}`;