Skip to content

Commit c0ea792

Browse files
authored
fixup! broken script
1 parent e3d79b0 commit c0ea792

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/processRequest.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ export const extractFieldValues = (body, fieldNames) => {
2121
const r = new RegExp(String.raw`${f}\s+(.*?)(\s+###|$)`, 'si')
2222

2323
// Build an object with the capturing group and value for each field
24-
return { ...acc, [f]: body.match(r)?.[1].trim() }
24+
return { ...acc, [f.toLowerCase()]: body.match(r)?.[1].trim() }
2525
}, {})
2626
}
2727

2828
export const applyNetworkConfig = (values) => {
29+
console.log(values)
2930
const config = NETWORK_CONFIG[values.network]
3031

3132
if (!config) {

0 commit comments

Comments
 (0)