Skip to content

Commit b3b2aa0

Browse files
committed
fix: ui regex fixed
fix: provider name regex fixed added more description in rename documentation
1 parent e932001 commit b3b2aa0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

desktop/src/lib/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Regular expression for validating provider names
22
// Provider names can only contain lowercase letters, numbers, and hyphens
3-
export const PROVIDER_NAME_REGEX = /^[a-z0-9\\-]+$/
3+
export const PROVIDER_NAME_REGEX = /^[a-z0-9-]+$/
44

55
// Maximum length for provider names
66
export const MAX_PROVIDER_NAME_LENGTH = 32

docs/pages/managing-providers/rename-provider.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ The rename operation performs the following steps:
3434
2. Automatically rebinds all workspaces associated with the old provider to use the new provider name
3535
3. If all workspace rebinding succeeds and the provider being renamed is the default provider, updates the default provider setting to the new name
3636
4. Cleans up the old provider after successful rebinding and default provider update (if applicable)
37-
5. If any workspace rebinding or default provider update fails, the operation rolls back by reverting the workspace configurations, restoring the default provider setting (if it was changed), and deleting the cloned provider
37+
5. If any workspace rebinding or default provider update fails, the operation rolls back by reverting the workspace configurations, restoring the default provider setting (if it was changed), and deleting the cloned provider if all workspaces were successfully reverted
38+
6. If workspace rebinding on rollback fails, the cloned provider will remain to avoid orphaned workspaces
3839

3940
## GUI
4041

0 commit comments

Comments
 (0)