Steps to replicate the issue (include links if applicable):
- Go to create a new Implementation for Z30837
- Select JS, and copy in the finished code I left on the talk page
- Bring up the Publish dialog, enter a message, and click Publish
What happens?:
Red error box appears, simply saying "Invalid JSON".
What should have happened instead?:
The Implementation object is created.
Or if there's some restriction that my code is violating, a clearer error message.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
live wiki
Other information (browser name/version, screenshots, etc.):
FF 146, Plasma 6, NixOS
I'd ran into this once before, also with a JS snippet full of RegExes.