Cloudflare Worker Trailing Space Bug in String Literal

A very simple test.
You create a worker, then modify hello world to
* Note that there is a space at the end of the string.

Deployment will report an error
API Request Failed: PUT /api/v4/accounts/9e0d39b714fdd7b1b66d46589d33ba59/workers/services/fragrant-hill-498d/environments/production?include_subdomain_availability=true (403)



The solution is to use a string containing perl -pe, then use string concatenation to append the space.

Obviously, this is a bug in Cloudflare's worker.
So, readers should never treat this as a JS tidbit to learn. Haha

========
Github project has been updated
https://github.com/crazypeace/gh-proxy/

========
Thanks
fscarmen https://t.me/fscarmen2
Comments