I am attempting to edit a question to improve its formatting, however I am getting this error:
Whatever I change the first line to the error changes accordingly. It appears as if the validation checker is being a little overzealous in this instance. Is it being confused by the characters used within the code sample in the question?
For reference, here is the full text I am attempting to submit:
The below function is checking Email validation:
function checkEmailValid(email, result) { if (email.val() == "") { result.text("이메일을 입력하십시요."); return false; } else { var re_mail = /^([\w\.-]+)@([a-z\d\.-]+)\.([a-z\.]{2,6})$/; if (re_mail.test(email.val())) { var res = false; $.ajax({ type: "GET", url: "http://127.0.0.1:3000/auth/checkemail/" + email.val(), timeout: 2000, beforeSend: function () { result.text("이메일 확인 중..."); }, complete: function (jqXHR) { if (jqXHR.status == 202) { res = true; } else { result.text("이미 등록된 이메일입니다."); res = false; } }, success: function (data, textStatus, jqXHR) { }, fail: function () { } }); alert("step2 : " + res); ////////Here is Step2!!! alert("step3 : " + res); ///////Here is Step3!!! return res; } else { result.text("이메일 형식이 올바르지 않습니다."); return false; } } }
If the email is valid the function will return
true
, but oddly enough res of step2 isfalse
and res of step3 istrue
. What is happening?Step 2 value:
Step 3 value:
My function...
gives the error as:Body cannot contain "My functio".