mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-20 06:37:23 +02:00
fix: handle production source failures and reduce ZIP work
This commit is contained in:
1 parent
bd7d6f0bef
commit
705f7c428a
16 files changed
+612
-86
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user