MCPcopy Index your code
hub / github.com/simstudioai/sim / decodeObjectKey

Function decodeObjectKey

apps/sim/connectors/s3/s3.ts:378–384  ·  view source on GitHub ↗

* Decodes a URL-encoded object key returned when `encoding-type=url` is set. * Falls back to the raw value if decoding fails (malformed percent sequence).

(value: string)

Source from the content-addressed store, hash-verified

376 * Falls back to the raw value if decoding fails (malformed percent sequence).
377 */
378function decodeObjectKey(value: string): string {
379 try {
380 return decodeURIComponent(value)
381 } catch {
382 return value
383 }
384}
385
386/**
387 * Extracts the text content of the first matching XML tag within a fragment.

Callers 1

parseListResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected