Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Apr 17, 2023

Replicate validates owner and model names using the naming rules for Docker images.

The current regex pattern used to validate identifiers passed to run doesn't account for hyphens (-) or full stops (.), and incorrectly throws an error for valid identifiers like cjwbw/anything-v4.0:42a996d39a96aedc57b2e0aa8105dea39c9c89d9d266caf6bb4327a1c191b061.

This PR updates the regex pattern to be in line with Replicate naming rules, and adds test coverage to ensure correct behavior.

@mattt mattt merged commit f1c725f into main Apr 17, 2023
@mattt mattt deleted the mattt/fix-run-identifier-validation branch April 17, 2023 13:35
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.

2 participants