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

feat: allow underscore in publish url #998

Merged
merged 2 commits into from
Nov 16, 2024
Merged

Conversation

speed2exe
Copy link
Collaborator

No description provided.

@@ -74,7 +74,7 @@ fn check_collab_publish_name(publish_name: &str) -> Result<(), AppError> {

// Only contain alphanumeric characters and hyphens
for c in publish_name.chars() {
if !c.is_alphanumeric() && c != '-' {
if !c.is_alphanumeric() && c != '-' && c != '_' {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we use regex to handle it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we there is more complicated pattern (like email) that we want to enforce, I think it would be worth to add it in. For now, this is good enough.

@speed2exe speed2exe merged commit 7c6a706 into main Nov 16, 2024
10 checks passed
@speed2exe speed2exe deleted the feat/allow-underscore-in-url branch November 16, 2024 07:59
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