mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
refactor: links validator
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export { PROJECT_LINK_BLOCK_LIST } from './block-list.ts'
|
||||
export { PROJECT_LINK_DOMAIN_LIST } from './domain-list.ts'
|
||||
export {
|
||||
getBlockedProjectContentLink,
|
||||
getBlockedProjectExternalLink,
|
||||
getLinkHostname,
|
||||
hostnameMatchesDomain,
|
||||
isCommonProjectLink,
|
||||
isDiscordLink,
|
||||
isInappropriateLicenseLink,
|
||||
isLinkShortener,
|
||||
} from './syntax-checks.ts'
|
||||
export type {
|
||||
BlockedProjectLink,
|
||||
LinkCheckContext,
|
||||
LinkCheckResult,
|
||||
MessageDescriptor,
|
||||
} from './types.ts'
|
||||
export { validateLink, validateLinkSyntax } from './validation.ts'
|
||||
Reference in New Issue
Block a user