From 3c7125a2eb86ef7c20512929d474cfbc197d91b9 Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Wed, 2 Oct 2019 09:18:27 +0530 Subject: [PATCH] style: Fix formatting --- frappe/public/js/frappe/form/controls/currency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/controls/currency.js b/frappe/public/js/frappe/form/controls/currency.js index 141eae1e8e..1961985117 100644 --- a/frappe/public/js/frappe/form/controls/currency.js +++ b/frappe/public/js/frappe/form/controls/currency.js @@ -1,6 +1,6 @@ frappe.ui.form.ControlCurrency = frappe.ui.form.ControlFloat.extend({ eval_expression: function(value) { - if (typeof value ==='string' + if (typeof value === 'string' && value.match(/^[0-9+-/* ]+$/) // paresFloat('1,44,000') returns 1.0 // 1,44,000 are being passed when we paste rows from excel sheet to a table