Skip to content

fix(dotprompt-dart,dotprompt-java,dotprompt-rs): support dotted partial names #543

Open
anthonyAttentive wants to merge 4 commits intogoogle:mainfrom
anthonyAttentive:anthony/support-dot-in-partial-names
Open

fix(dotprompt-dart,dotprompt-java,dotprompt-rs): support dotted partial names #543
anthonyAttentive wants to merge 4 commits intogoogle:mainfrom
anthonyAttentive:anthony/support-dot-in-partial-names

Conversation

@anthonyAttentive
Copy link

@anthonyAttentive anthonyAttentive commented Feb 25, 2026

Support for dots in partial names (e.g., {{> greeting.in_french}}) is currently inconsistent across SDKs:

SDK Status
Python Supported — regex allows . via [a-zA-Z0-9_.-]+
JS/Go Supported — AST-based parsing naturally allows dots
Dart Not supported
Java Not supported
Rust Not supported

This PR adds . to the partial name regex character class in Dart, Java, and Rust, and adds a shared partial_name_with_full_regex spec test case to spec/partials.yaml to validate partial name regex consistency across all SDKs.

@github-actions github-actions bot added config rust Pull requests that update rust code java dart labels Feb 25, 2026
@google-cla
Copy link

google-cla bot commented Feb 25, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@anthonyAttentive anthonyAttentive marked this pull request as draft February 25, 2026 15:50
@anthonyAttentive anthonyAttentive marked this pull request as ready for review February 25, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config dart dotprompt-dart java rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant