resolveProject maps a Sentry DSN project segment to a Buggregator project key. The Sentry JavaScript SDK rejects non-numeric DSN project ids, so a purely numeric segment is the SDK-internal project id, not a Buggregator project name — it resolves to empty so the event lands in the default project. I
(segment string)
| 388 | // numeric segment is the SDK-internal project id, not a Buggregator project name — |
| 389 | // it resolves to empty so the event lands in the default project. Issue #338. |
| 390 | func resolveProject(segment string) string { |
| 391 | if isAllDigits(segment) { |
| 392 | return "" |
| 393 | } |
| 394 | return segment |
| 395 | } |
| 396 | |
| 397 | func isAllDigits(s string) bool { |
| 398 | if s == "" { |