Browse Source

Special character remove *

master
venkataakhil 2 years ago
parent
commit
aceebfb85d
  1. 3
      smart_service/transactions/doctype/procedure/procedure.js

3
smart_service/transactions/doctype/procedure/procedure.js

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

Loading…
Cancel
Save