Repository navigation
Commit ed92374
fix(desktop): keep WSL distros whose names start or end with a dot or hyphen
The distro name check required a letter, digit or underscore at both
ends, but WSL registers names like "Ubuntu-" or ".Ubuntu". Selecting one
in settings fell back to the default distro, and UNC paths inside it
were not mapped. Allow dot and hyphen at either end, still rejecting "."
and ".." so the UNC distro segment cannot be a relative path segment.
Fixes #35955
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 3ad5402 commit ed92374
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments