MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / formAction

Function formAction

e2e/scenarios/google-disabled-api.test.ts:87–90  ·  view source on GitHub ↗
(html: string, fallback: string)

Source from the content-addressed store, hash-verified

85};
86
87const formAction = (html: string, fallback: string): string => {
88 const action = html.match(/<form\b[^>]*\baction=["']([^"']+)["']/i)?.[1];
89 return action ? decodeHtml(action) : fallback;
90};
91
92const completeGoogleConsent = (authorizationUrl: string) =>
93 Effect.promise(async () => {

Callers 1

completeGoogleConsentFunction · 0.70

Calls 1

decodeHtmlFunction · 0.70

Tested by

no test coverage detected