fix: handle production source failures and reduce ZIP work

This commit is contained in:
Thomas Durieux committed 2026-10-09 09:40:54 +00:00
1 parent bd7d6f0bef
commit 705f7c428a
16 files changed
+612 -86

No files matched your search

+3 -1
View File
@@ -68,7 +68,9 @@ function extractBackendErrorCodes(files) {
// Multi-line matching for AnonymousError calls that span lines
// (e.g. ternary expressions where the string is on the next line)
const multiLinePattern =
/AnonymousError\([\s\S]*?["']([a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+)["']/g;
// Stop at a closing parenthesis so a dynamic code cannot consume an
// unrelated string in a later statement, such as a monitoring label.
/AnonymousError\([^)]*?["']([a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+)["']/g;
let m;
while ((m = multiLinePattern.exec(content)) !== null) {
const code = m[1];