Match even if there's a cariage return after pritIfExists...

This commit is contained in:
garronej 2023-06-19 02:00:02 +02:00
parent a7c0e5bdaa
commit 0dbe592182

View File

@ -85,7 +85,7 @@ export function readFieldNameUsage(params: {
}
fieldNames.push(
...Array.from(rawSourceFile.matchAll(/(?:(?:printIfExists)|(?:existsError)|(?:get)|(?:exists))\(["']([^"']+)["']/g), m => m[1])
...Array.from(rawSourceFile.matchAll(/(?:(?:printIfExists)|(?:existsError)|(?:get)|(?:exists))\(\s*["']([^"']+)["']/g), m => m[1])
);
}
}