CloudflareworkerJS里面 字符串不能包含 perl -pe空格

一个非常简单的测试.
你创建一个worker, 然后把hello world修改为

perl -pe空格

* 注意字符串的末尾有个空格.

部署就会报错

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




处理方法就是用一个字符串包含 perl -pe, 再用字符串拼接的方式添加空格.

很明显, 这是Cloudflareworker的一个bug.
所以, 读者千万不要当作一个JS小知识给学习了. 哈哈

========
Github 项目已更新
https://github.com/crazypeace/gh-proxy/

========
感谢
fscarmen https://t.me/fscarmen2

评论

The Hot3 in Last 30 Days

RackNerd VPSXray Reality梯子 年付 $10.98 1G端口 3T流量 17G存储 1GB内存

丐版VPS 搭酒馆SillyTavern 使用Google Gemini免费API 和AI对话第一个故事

重装VPS系统时, 备份和恢复翻墙软件的配置文件 caddy v2ray xray hysteria2 / Caddyfile config.json config.yaml 域名证书