Greasy Fork is available in English.

Discussioni » Feedback di Greasy Fork

官网是不是出错了

§
Pubblicato: 14/08/2019

官网是不是出错了

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

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

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

wOxxOmMod
§
Pubblicato: 14/08/2019
Modificato: 14/08/2019

@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.

§
Pubblicato: 15/08/2019

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

Pubblica risposta

Accedi per pubblicare una risposta.