Add url validation options + regex literal syntax#599
Merged
theoephraim merged 7 commits intomainfrom Apr 14, 2026
Merged
Conversation
Copilot created this pull request from a session on behalf of
theoephraim
April 13, 2026 06:34
View session
🦋 Changeset detectedLatest commit: d54c0ee The changes in this PR will be included in the next version bump. This PR includes changesets to release 20 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Copilot stopped work on behalf of
theoephraim due to an error
April 13, 2026 06:42
noTrailingSlash and matches (regex) options to the url data type
commit: |
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/917affcf-688a-455d-8358-0ade43ff64a2 Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/c64bda59-564c-4d92-b03d-abf64bb1f3e3 Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Introduce /pattern/flags as a first-class value type in the env-spec grammar, deprecating the regex() function wrapper. Regex literals work in all value positions: config item values, function args, decorator values, and key=value pairs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Circular class references between FunctionArgs and FunctionCall make reordering impossible; suppress the lint rule on the specific line. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6a450dc to
d54c0ee
Compare
theoephraim
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
URL validation options
noTrailingSlashandmatchesoptions tourldata typeregex("pattern")wrapper inmatchesoption (runtime + vscode paths)regex()wrapper inmatchesoption (url and string)Regex literal syntax (
/pattern/flags)ParsedEnvSpecRegexLiteralAST class in env-spec-parserRegexLiteralgrammar rule, wired into all value positions (config values, function args, decorator values)simplifiedValues,convertParsedValueToResolvers, andexpand/pattern/flagsinmatchesoption andisDynamicValueregex()function marked as deprecated in intellisense, with guidance to use literal syntaxExample usage