Skip to content

Commit a3b39e1

Browse files
committed
Array vars should be plural
1 parent 5e4fa67 commit a3b39e1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"dev": "deno run --watch main.ts"
44
},
55
"imports": {
6-
"@regexplanet/common": "jsr:@regexplanet/common@^1.0.0",
6+
"@regexplanet/common": "jsr:@regexplanet/common@^1.1.0",
77
"@std/assert": "jsr:@std/assert@1"
88
}
99
}

deno.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ async function serveStaticFile(
1515
};
1616
}
1717

18-
1918
const routeMap: Map<string, (req: Request) => Promise<Response>> = new Map([
2019
["/", root],
2120
["/robots.txt", await serveStaticFile("static/robots.txt", "text/css")],
@@ -95,10 +94,10 @@ async function testJson(req: Request) {
9594
console.log("formData", data);
9695

9796
testInput = {
98-
engine: "bun",
97+
engine: "deno",
9998
regex: data.get("regex") as string,
10099
replacement: data.get("replacement") as string,
101-
option: data.getAll("option") as string[],
100+
options: data.getAll("option") as string[],
102101
inputs: data.getAll("input") as string[],
103102
};
104103
}
@@ -108,7 +107,7 @@ async function testJson(req: Request) {
108107
engine: searchParams.get("engine") || "deno",
109108
regex: searchParams.get("regex") || "",
110109
replacement: searchParams.get("replacement") || "",
111-
option: searchParams.getAll("option") as string[],
110+
options: searchParams.getAll("option") as string[],
112111
inputs: searchParams.getAll("input") as string[],
113112
};
114113
console.log("searchParams", searchParams);

0 commit comments

Comments
 (0)