(raw: string)
| 2279 | }; |
| 2280 | |
| 2281 | const sanitizeProfileName = (raw: string): string => { |
| 2282 | const cleaned = raw |
| 2283 | .trim() |
| 2284 | .replace(/[^A-Za-z0-9_.-]+/g, "-") |
| 2285 | .replace(/^-+|-+$/g, ""); |
| 2286 | return cleaned.length > 0 ? cleaned : "server"; |
| 2287 | }; |
| 2288 | |
| 2289 | // The (origin, user, org) a stored oauth profile authenticates as, lets us |
| 2290 | // recognize a re-login to the SAME account (update in place) versus a |
no test coverage detected