|
|
@ -63,7 +63,7 @@ frappe.ui.form.on('App Labels', { |
|
|
|
frappe.throw(__("Just a <b>.</b> is not prescribed!")); |
|
|
|
frappe.validated = false; |
|
|
|
} |
|
|
|
var regex = /[!@#$%^&*()_+\=\[\]{};`~':"\\|.<>\/?]+/; |
|
|
|
var regex = /[!@#$%^&*()+\=\[\]{};`~':"\\|.<>\/?]+/; |
|
|
|
if (frm.doc.page_name) { |
|
|
|
if (regex.test(frm.doc.page_name) === true) { |
|
|
|
frappe.throw(__("<b>Page Name :</b> Only letters, numbers and <b> -,</b> are allowed.")); |
|
|
@ -90,7 +90,7 @@ frappe.ui.form.on('App Labels', { |
|
|
|
frappe.throw(__("Just a <b>.</b> is not prescribed!")); |
|
|
|
frappe.validated = false; |
|
|
|
} |
|
|
|
var regex = /[!@#$%^&*()_+\=\[\]{};`~':"\\|.<>\/?]+/; |
|
|
|
var regex = /[!@#$%^&*()+\=\[\]{};`~':"\\|.<>\/?]+/; |
|
|
|
if (frm.doc.label) { |
|
|
|
if (regex.test(frm.doc.label) === true) { |
|
|
|
frappe.throw(__("<b>Translated Label :</b> Only letters, numbers and <b> -,</b> are allowed.")); |
|
|
|