What this change means
Regex changed. Changes keywords, regex patterns or pairing.
| Field | Before | After |
|---|---|---|
| Regex patterns | Before: \b([a-zA-Z0-9_-]{32,60})\b, \b([a-zA-Z0-9_-]{64,})\b, \b([a-zA-Z0-9][a-zA-Z0-9._-]*auth0\.com)\b | After: \b([a-zA-Z0-9_-]{32,60})\b, \b([a-zA-Z0-9_-]{64,})\b, \b([a-zA-Z0-9][a-zA-Z0-9._-]*auth0(?:app)?\.com)\b |
| @@ -27,7 +27,11 @@ var ( | ||
| 27 | 27 | |
| 28 | 28 | clientIdPat = regexp.MustCompile(detectors.PrefixRegex([]string{"auth0"}) + `\b([a-zA-Z0-9_-]{32,60})\b`) |
| 29 | 29 | clientSecretPat = regexp.MustCompile(`\b([a-zA-Z0-9_-]{64,})\b`) |
| 30 | removed: domainPat = regexp.MustCompile(`\b([a-zA-Z0-9][a-zA-Z0-9._-]*auth0\.com)\b`) // could be part of url | |
| 30 | added: // could be part of url; auth0app.com is Auth0's managed domain for Private Cloud tenants. | |
| 31 | added: // TODO: a bare domain with no leading character (e.g. "auth0.com" or "auth0app.com" with | |
| 32 | added: // no subdomain/prefix at all) never matches, since the leading character class must be | |
| 33 | added: // consumed before the literal "auth0" substring. Pre-existing, unrelated to this fix. | |
| 34 | added: domainPat = regexp.MustCompile(`\b([a-zA-Z0-9][a-zA-Z0-9._-]*auth0(?:app)?\.com)\b`) | |
| 31 | 35 | ) |
| 32 | 36 | |
| 33 | 37 | // Keywords are used for efficiently pre-filtering chunks. |