Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExpansionMax is the default cap on the number of expansion results. // TypeScript brace-expansion: EXPANSION_MAX = 100_000 // Also Options DefaultBraceExpandMax. ExpansionMax = 100_000 // ExpansionMaxLength caps total characters held across all results in // the accumulator (CVE-2026-14257 mitigation). // TypeScript: EXPANSION_MAX_LENGTH = 4_000_000 ExpansionMaxLength = 4_000_000 )
Expansion limits matching brace-expansion@5 (used by minimatch).
Variables ¶
This section is empty.
Functions ¶
func Expand ¶
Expand runs brace-expansion expand(str, {max, maxLength}). Does not validate pattern length or honor nobrace (caller handles that).
func HasSimpleGroup ¶
HasSimpleGroup is the ReDoS-safe `{…}` pre-check used by minimatch.braceExpand.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.