mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 19:46:33 +00:00
feat: change links in summary to be a blocking error and combined with formatting nag, banned links in description are also blocking
This commit is contained in:
@@ -46,6 +46,10 @@ export function useProjectDescriptionValidation(
|
||||
linkValidation.value = null
|
||||
|
||||
if (import.meta.server) return
|
||||
if (validateProjectDescription(text).some(({ code }) => code === 'text-banned-link')) {
|
||||
pending.value = false
|
||||
return
|
||||
}
|
||||
|
||||
const links = extractProjectLinks(text ?? '')
|
||||
if (links.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user