|
1 | 1 | <script lang="ts" setup>
|
2 |
| -import { computed, reactive, ref, onMounted } from 'vue'; |
3 |
| -import type { Rule, RuleGroup } from '@n8n/design-system/types'; |
4 |
| -import { MODAL_CONFIRM } from '@/constants'; |
5 |
| -import { useSourceControlStore } from '@/stores/sourceControl.store'; |
6 |
| -import { useToast } from '@/composables/useToast'; |
| 2 | +import CopyInput from '@/components/CopyInput.vue'; |
| 3 | +import { useDocumentTitle } from '@/composables/useDocumentTitle'; |
7 | 4 | import { useLoadingService } from '@/composables/useLoadingService';
|
8 |
| -import { useI18n } from '@n8n/i18n'; |
9 | 5 | import { useMessage } from '@/composables/useMessage';
|
10 |
| -import { useDocumentTitle } from '@/composables/useDocumentTitle'; |
11 |
| -import CopyInput from '@/components/CopyInput.vue'; |
12 |
| -import type { TupleToUnion } from '@/utils/typeHelpers'; |
13 |
| -import type { SshKeyTypes } from '@/types/sourceControl.types'; |
14 | 6 | import { usePageRedirectionHelper } from '@/composables/usePageRedirectionHelper';
|
| 7 | +import { useToast } from '@/composables/useToast'; |
| 8 | +import { MODAL_CONFIRM } from '@/constants'; |
| 9 | +import { useSourceControlStore } from '@/stores/sourceControl.store'; |
| 10 | +import type { SshKeyTypes } from '@/types/sourceControl.types'; |
| 11 | +import type { TupleToUnion } from '@/utils/typeHelpers'; |
| 12 | +import type { Rule, RuleGroup } from '@n8n/design-system/types'; |
| 13 | +import { useI18n } from '@n8n/i18n'; |
| 14 | +import { computed, onMounted, reactive, ref } from 'vue'; |
15 | 15 |
|
16 | 16 | const locale = useI18n();
|
17 | 17 | const sourceControlStore = useSourceControlStore();
|
@@ -134,7 +134,7 @@ const repoUrlValidationRules: Array<Rule | RuleGroup> = [
|
134 | 134 | name: 'MATCH_REGEX',
|
135 | 135 | config: {
|
136 | 136 | regex:
|
137 |
| - /^(?:git@|ssh:\/\/git@|[\w-]+@)(?:[\w.-]+|\[[0-9a-fA-F:]+])(?::\d+)?[:\/][\w\-~]+(?:\/[\w\-~]+)*(?:\.git)?(?:\/.*)?$/, |
| 137 | + /^(?:git@|ssh:\/\/git@|[\w-]+@)(?:[\w.-]+|\[[0-9a-fA-F:]+])(?::\d+)?[:\/][\w\-~.]+(?:\/[\w\-~.]+)*(?:\.git)?(?:\/.*)?$/, |
138 | 138 | message: locale.baseText('settings.sourceControl.repoUrlInvalid'),
|
139 | 139 | },
|
140 | 140 | },
|
|
0 commit comments