Skip to content

fix(varlock): accept uppercase hex for @type=md5 - #14

Closed
WalksWithASwagger wants to merge 1 commit into
mainfrom
cursor/fix-md5-uppercase-21b2
Closed

fix(varlock): accept uppercase hex for @type=md5#14
WalksWithASwagger wants to merge 1 commit into
mainfrom
cursor/fix-md5-uppercase-21b2

Conversation

@WalksWithASwagger

Copy link
Copy Markdown
Owner

Summary

@type=md5 only accepted lowercase hex. Uppercase hashes (common from tools) failed validation even though UUID already uses a case-insensitive check.

Changes

  • Case-insensitive MD5 regex
  • Coerce to lowercase for a stable resolved value

Test plan

  • bunx vitest run src/env-graph/test/data-types.test.ts -t "md5 data type"

Open on upstream (from your laptop as WalksWithASwagger):
https://github.com/dmno-dev/varlock/compare/main...WalksWithASwagger:varlock:cursor/fix-md5-uppercase-21b2?expand=1

Open in Web Open in Cursor 

MD5 hashes from tools are often uppercase; UUID already used a
case-insensitive regex. Accept A-F and normalize to lowercase.
@github-actions

Copy link
Copy Markdown

bumpy-frog

The changes in this PR will be included in the next version bump.

patch Patch releases

  • varlock 1.14.1 → 1.14.2

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@WalksWithASwagger

Copy link
Copy Markdown
Owner Author

Landed on current main via #17 (rebased onto dmno-dev/varlock main). Closing this stale branch PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant