Commit 6783f9195256d8e7405cdf18a1f1024043c8f251

Authored by Adhidarma Hadiwinoto
1 parent 036c649ec3
Exists in master

APISERVER: perbaikan regex pada /products/del

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

api-server/router-products.js
... ... @@ -59,7 +59,7 @@ function pageDel(req, res, next) {
59 59 }
60 60  
61 61 if (typeof products === 'string') {
62   - products = products.trim().split(/[\s,]*/);
  62 + products = products.trim().split(/[\s,]+/);
63 63 }
64 64  
65 65 config.products.map(function(x) { return x.toUpperCase(); });