Skip to content

Commit a161b4e

Browse files
committed
Array vars should be plural
1 parent 915c272 commit a161b4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bun.lockb

7 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
},
1414
"type": "module",
1515
"dependencies": {
16-
"@regexplanet/common": "npm:@jsr/regexplanet__common"
16+
"@regexplanet/common": "^1.1.0"
1717
}
1818
}

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function testJson(req: Request, server: Server): Promise<Response> {
8484
engine: "bun",
8585
regex: data.get("regex") as string,
8686
replacement: data.get("replacement") as string,
87-
option: data.getAll("option") as string[],
87+
options: data.getAll("option") as string[],
8888
inputs: data.getAll("input") as string[],
8989
};
9090
}
@@ -94,7 +94,7 @@ async function testJson(req: Request, server: Server): Promise<Response> {
9494
engine: searchParams.get("engine") || "bun",
9595
regex: searchParams.get("regex") || "",
9696
replacement: searchParams.get("replacement") || "",
97-
option: searchParams.getAll("option") as string[],
97+
options: searchParams.getAll("option") as string[],
9898
inputs: searchParams.getAll("input") as string[],
9999
};
100100
console.log("searchParams", searchParams);

0 commit comments

Comments
 (0)