Commit 3fad61d
committed
fix(config): allow leading dash in wing names
The _SAFE_NAME_RE regex required wing names to start AND end with an
alphanumeric. Auto-mined wings derived from CC transcript paths
(e.g. -Volumes-codeXD-vlad-ozweb) start with a dash, so every read API
that called sanitize_name failed with 'wing contains invalid characters'.
The auto-miner bypassed the validator on writes, creating wings that no
read API could enumerate. Backward-pass gnome's daily run silently did
nothing (it logged the diagnosis itself: 'taxonomy reports 47483 drawers
exist, but cannot list them').
Relaxes the leading-character class from [^\W_] (letter/digit only) to
[\w-] (letter/digit/underscore/dash). Trailing constraint and path-traversal
blocks (.., /, \, null bytes) unchanged.1 parent 94f1689 commit 3fad61d
1 file changed
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
134 | | - | |
135 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
136 | 163 | | |
137 | 164 | | |
138 | 165 | | |
| |||
166 | 193 | | |
167 | 194 | | |
168 | 195 | | |
169 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
170 | 199 | | |
171 | 200 | | |
172 | 201 | | |
| |||
0 commit comments