mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Company Name special characters js validation
This commit is contained in:
@@ -3,7 +3,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.has_special_chars = function(t) {
|
cur_frm.cscript.has_special_chars = function(t) {
|
||||||
var iChars = "!@#$%^&*+=-[]\\\';,/{}|\":<>?";
|
var iChars = "!@#$%^*+=-[]\\\';,/{}|\":<>?";
|
||||||
for (var i = 0; i < t.length; i++) {
|
for (var i = 0; i < t.length; i++) {
|
||||||
if (iChars.indexOf(t.charAt(i)) != -1) {
|
if (iChars.indexOf(t.charAt(i)) != -1) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user