/** * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ import { getUserAgentRegex } from 'browserslist-useragent-regexp' // eslint-disable-next-line n/no-extraneous-import import browserslist from 'browserslist' import browserslistConfig from '@nextcloud/browserslist-config' // Generate a regex that matches user agents to detect incompatible browsers export const supportedBrowsersRegExp = getUserAgentRegex({ allowHigherVersions: true, browsers: browserslistConfig }) export const supportedBrowsers = browserslist(browserslistConfig)