mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix(editor): Update git repo URL validation to prevent using https protocol (#6475)
This commit is contained in:
parent
d9f646511a
commit
8b50625fb1
|
@ -117,7 +117,7 @@ const repoUrlValidationRules: Array<Rule | RuleGroup> = [
|
|||
{
|
||||
name: 'MATCH_REGEX',
|
||||
config: {
|
||||
regex: /(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/,
|
||||
regex: /^(?!https?:\/\/)(?:git|ssh|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/,
|
||||
message: locale.baseText('settings.versionControl.repoUrlInvalid'),
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue