Discussions » Greasy Fork Feedback

官网是不是出错了

§
Posted: 2019-08-14

官网是不是出错了

无论改不改,改什么删什么,只要一点发布版本就报错:

很抱歉,您提交的内容有点问题…

Code contains errors: Uncaught SyntaxError: Unexpected token : at undefined:3:13

wOxxOmMod
§
Posted: 2019-08-14
Edited: 2019-08-14

@JasonBarnabe, the script in question is a JSON object which I guess is used via @resource. You may argue this is not a script nor a library so it shouldn't be allowed, but a JSON can be recognized reliably by your syntax verifier so maybe it's worth making an exception. If there's no dedicated JSON test you can probably just retry your currently used test with 'foo=' + code.

§
Posted: 2019-08-15

Should be easy enough to test if it's valid JSON.

Post reply

Sign in to post a reply.