Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix regex anchoring semantics #82

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

hudson-ai
Copy link
Collaborator

Closes #66

TODO: maybe some tests

Github suggested I ask Copilot for a review, so why not 😆

@hudson-ai hudson-ai requested review from mmoskal and Copilot December 6, 2024 02:48

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no suggestions.

Comments skipped due to low confidence (1)

parser/src/json/schema.rs:557

  • Ensure that the new regex anchoring behavior is covered by tests.
pattern: Some(format!("^{}$", escape(s))),
@hudson-ai hudson-ai merged commit 904562a into guidance-ai:main Dec 10, 2024
1 check passed
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.

Json regexes should not be anchored by default
2 participants