capabilities.work

Add a suffix to a string if it is missing

One step with Delx. We can help you get access.

Look something up

Add a suffix to a string if it is missing

with Delx

Use Delx: its Delx Commerce — services for autonomous agents X402 API lets you add a suffix to a string if it is missing in a single step (POST /api/v1/x402/ensure-suffix). capabilities.work can help you get signed up and connected.

  • Can I guarantee a path ends with a trailing slash without duplicating it?
  • What happens if the string already ends with the suffix I want to enforce?
Say it to your AI assistant
  • Ensure {text} ends with {suffix}.
  • Append {suffix} to {text} only when it isn't already there.
For your developer

POST /api/v1/x402/ensure-suffix in Delx Commerce — services for autonomous agents X402 API. Full spec on APIs.io.