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