-
Notifications
You must be signed in to change notification settings - Fork 33.8k
fix(editor): Fix regExp to allow "." in Git repository URL (SSH) #15972
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
fix(editor): Fix regExp to allow "." in Git repository URL (SSH) #15972
Conversation
@@ -134,7 +134,7 @@ const repoUrlValidationRules: Array<Rule | RuleGroup> = [ | |||
name: 'MATCH_REGEX', | |||
config: { | |||
regex: | |||
/^(?:git@|ssh:\/\/git@|[\w-]+@)(?:[\w.-]+|\[[0-9a-fA-F:]+])(?::\d+)?[:\/][\w\-~]+(?:\/[\w\-~]+)*(?:\.git)?(?:\/.*)?$/, | |||
/^(?:git@|ssh:\/\/git@|[\w-]+@)(?:[\w.-]+|\[[0-9a-fA-F:]+])(?::\d+)?[:\/][\w\-~.]+(?:\/[\w\-~.]+)*(?:\.git)?(?:\/.*)?$/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cstuncsik this is the only change, everything else is formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic reviewed 2 files and found no issues. Review PR in cubic.dev.
Workflow Test Results 📊 🔴 2 Failed,
|
Workflow ID | Workflow Name | Reason |
---|---|---|
237 | BasicLLMChain:AzureChat | Workflow contains 1 deleted data. |
258 | Agent:auto-fix:openai | Workflow contains 2 deleted data. |
⚠️ Warnings (4)
Workflow ID | Workflow Name | Reason |
---|---|---|
35 | Slack:User:getPresence info:UserProfile:get update... | Workflow contains new data that previously did not exist. |
53 | ConvertKit:CustomField:create getAll update delete... | Workflow contains new data that previously did not exist. |
257 | Agent:auto-fix:anthropic | Workflow contains new data that previously did not exist. |
48 | Asana:Project:getAll get:Task:create update move g... | Workflow contains new data that previously did not exist. |
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
✅ All Cypress E2E specs passed |
Got released with |
Summary
Fix the regular expression validating the Git repository URL (SSH) to allow "."
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/PAY-2903/community-issue-issues-with-field-validation-on-git-repository-url-ssh
resolves #15958
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)