Skip to content

Commit ebebfa0

Browse files
committed
fix: resolve prettier formatting for long regex lines
1 parent d384aaf commit ebebfa0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/bin-test/test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ async function runStdioDiscovery(modulePath: string): Promise<DiscoveryResult> {
210210

211211
proc.on("close", () => {
212212
clearTimeout(timeoutId);
213-
const manifestMatch = stderr.match(/<FIREBASE_FUNCTIONS_MANIFEST>\n([\s\S]+?)\n<\/FIREBASE_FUNCTIONS_MANIFEST>/);
213+
const manifestMatch = stderr.match(
214+
/<FIREBASE_FUNCTIONS_MANIFEST>\n([\s\S]+?)\n<\/FIREBASE_FUNCTIONS_MANIFEST>/
215+
);
214216
if (manifestMatch) {
215217
const base64 = manifestMatch[1];
216218
const manifestJson = Buffer.from(base64, "base64").toString("utf8");
@@ -219,7 +221,9 @@ async function runStdioDiscovery(modulePath: string): Promise<DiscoveryResult> {
219221
return;
220222
}
221223

222-
const errorMatch = stderr.match(/<FIREBASE_FUNCTIONS_MANIFEST_ERROR>\n([\s\S]+?)\n<\/FIREBASE_FUNCTIONS_MANIFEST_ERROR>/);
224+
const errorMatch = stderr.match(
225+
/<FIREBASE_FUNCTIONS_MANIFEST_ERROR>\n([\s\S]+?)\n<\/FIREBASE_FUNCTIONS_MANIFEST_ERROR>/
226+
);
223227
if (errorMatch) {
224228
resolve({ success: false, error: errorMatch[1] });
225229
return;

0 commit comments

Comments
 (0)