mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
feat: hook up validators with input fields
This commit is contained in:
@@ -499,7 +499,7 @@ function findAt(root: TrieNode, text: string, start: number): ProfanityMatch | u
|
||||
const matchesNegative = current.negatives.some((negative) =>
|
||||
negativeMatches(negative, text, start, end),
|
||||
)
|
||||
if (matchesNegative && current.children.size === 0) return undefined
|
||||
if (matchesNegative) continue
|
||||
|
||||
return {
|
||||
kind: current.terminal.kind,
|
||||
|
||||
Reference in New Issue
Block a user