Commit 046fb821ea8bf2680341f06885955f26c0c50504

Authored by adi surya
1 parent 20edbc9666
Exists in master

update split

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -39,7 +39,7 @@ module.exports = async (xid, transaction) => {
39 39 productName = iConfig.products[transaction.product_name].remote;
40 40 }
41 41  
42   - const productNames = productName.split(',');
  42 + const productNames = productName.trim().split(/\s*,\s*/);
43 43 // eslint-disable-next-line prefer-destructuring
44 44 let quantity = transaction.quantity;
45 45