(raw: string)
| 2390 | }; |
| 2391 | |
| 2392 | const sanitizeProfileName = (raw: string): string => { |
| 2393 | const cleaned = raw |
| 2394 | .trim() |
| 2395 | .replace(/[^A-Za-z0-9_.-]+/g, "-") |
| 2396 | .replace(/^-+|-+$/g, ""); |
| 2397 | return cleaned.length > 0 ? cleaned : "server"; |
| 2398 | }; |
| 2399 | |
| 2400 | // The (origin, user, org) a stored oauth profile authenticates as, lets us |
| 2401 | // recognize a re-login to the SAME account (update in place) versus a |
no test coverage detected