Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

234 B
Raw Blame
export const getGoogleDriveVideoNames = (title?: string | null) => {
	if (!title?.trim() || /\p{Cc}/u.test(title)) {
		return null;
	}

	return {
		folderName: title,
		fileName: /\.mp4$/i.test(title) ? title : `${title}.mp4`,
	};
};