Sleazy Fork is available in English.

게시판 » Greasy Fork 피드백

官网是不是出错了

§
작성: 2019-08-14

官网是不是出错了

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

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

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

wOxxOm관리자
§
작성: 2019-08-14
수정: 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.

JasonBarnabe관리자
§
작성: 2019-08-15

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

댓글 남기기

댓글을 남기려면 로그인하세요.