(raw: string)
| 2310 | }; |
| 2311 | |
| 2312 | const sanitizeProfileName = (raw: string): string => { |
| 2313 | const cleaned = raw |
| 2314 | .trim() |
| 2315 | .replace(/[^A-Za-z0-9_.-]+/g, "-") |
| 2316 | .replace(/^-+|-+$/g, ""); |
| 2317 | return cleaned.length > 0 ? cleaned : "server"; |
| 2318 | }; |
| 2319 | |
| 2320 | // The (origin, user, org) a stored oauth profile authenticates as, lets us |
| 2321 | // recognize a re-login to the SAME account (update in place) versus a |
no test coverage detected