Skip to content

claude: flip from_regex default to fullmatch#85

Merged
Liam-DeVoe merged 3 commits into
mainfrom
from-regex-fullmatch-default
Jul 9, 2026
Merged

claude: flip from_regex default to fullmatch#85
Liam-DeVoe merged 3 commits into
mainfrom
from-regex-fullmatch-default

Conversation

@Liam-DeVoe

@Liam-DeVoe Liam-DeVoe commented Jul 9, 2026

Copy link
Copy Markdown
Member
Claude-written description

Flips the default match mode of from_regex from "contains a match" to fullmatch: from_regex(pattern) now generates strings where the entire string matches the pattern, as if anchored with ^...$. Pass from_regex(pattern, false) to restore the contains-a-match behavior.

  • Default parameter flipped in include/hegel/generators/strings.h; Doxygen example and @param text inverted to match.
  • Tests: RegexDefaultsToFullmatch asserts the default yields only full matches (std::regex_match); RegexFullmatchFalseAllowsContains asserts the false escape hatch produces matches with surrounding padding across the run; existing contains-mode call sites now pass false explicitly.
  • RELEASE.md with RELEASE_TYPE: minor (breaking change, but pre-1.0 zerover bumps minor).

Refs hegeldev/hegel-rust#258 (parallel PRs in hegel-rust, hegel-typescript, and hegel-java).

@Liam-DeVoe Liam-DeVoe merged commit 7b21d6e into main Jul 9, 2026
14 checks passed
@Liam-DeVoe Liam-DeVoe deleted the from-regex-fullmatch-default branch July 9, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant