Skip to content

fix: generate string literal - #8

Merged
jackchuka merged 1 commit into
mainfrom
fix/2025-09-18-generate
Sep 18, 2025
Merged

fix: generate string literal#8
jackchuka merged 1 commit into
mainfrom
fix/2025-09-18-generate

Conversation

@jackchuka

Copy link
Copy Markdown
Owner

This pull request makes a small adjustment to how heading text is extracted and updates a related test to match the new behavior. The main change is simplifying the logic for extracting heading text, which now returns the heading as-is instead of substituting placeholders for certain patterns. The test assertions are updated accordingly.

  • Heading extraction logic:

    • Simplified extractHeadingText in generator.go to always return the literal heading text, removing special handling for regex patterns and placeholders.
  • Test updates:

    • Updated test content and assertions in infer_test.go to expect the new heading format, specifically recognizing "## Child (Optional)" instead of "## Child". [1] [2]

@jackchuka
jackchuka merged commit c0ed163 into main Sep 18, 2025
1 check passed
@jackchuka
jackchuka deleted the fix/2025-09-18-generate branch September 18, 2025 09:03
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