Company Name special characters js validation
This commit is contained in:
parent
446e138867
commit
459805fadd
@ -3,7 +3,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
||||
}
|
||||
|
||||
cur_frm.cscript.has_special_chars = function(t) {
|
||||
var iChars = "!@#$%^&*+=-[]\\\';,/{}|\":<>?";
|
||||
var iChars = "!@#$%^*+=-[]\\\';,/{}|\":<>?";
|
||||
for (var i = 0; i < t.length; i++) {
|
||||
if (iChars.indexOf(t.charAt(i)) != -1) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user