|
@ -35,7 +35,8 @@ frappe.ui.form.on('Procedure', { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
validate: function (frm) { |
|
|
validate: function (frm) { |
|
|
var regex = /[@#$%^*\\[\]{}`~\\|\?]+/; |
|
|
// var regex = /[@#$%^*\\[\]{}`~\\|\?]/;
|
|
|
|
|
|
var regex = /[@#$%^\\[\]{}`~\\|\?]/; |
|
|
if (frm.doc.procedure_details) { |
|
|
if (frm.doc.procedure_details) { |
|
|
for (var i = 0; i < frm.doc.procedure_details.length; i++) { |
|
|
for (var i = 0; i < frm.doc.procedure_details.length; i++) { |
|
|
if (regex.test(frm.doc.procedure_details[i].content) === true) { |
|
|
if (regex.test(frm.doc.procedure_details[i].content) === true) { |
|
|