From 636a63c5644729707765908252118e11469c87e0 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Fri, 2 Oct 2020 09:41:20 +0700 Subject: [PATCH] splitPostpaidDetail mendukung titik dua maupun sama dengan --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ecf2862..dbc566f 100644 --- a/index.js +++ b/index.js @@ -134,7 +134,7 @@ function splitPostpaidDetail(str) { const retval = (str || '') .split('/') .map((item) => { - let [keyword, value] = item.split(':'); + let [keyword, value] = item.split(/[:=]/); keyword = (keyword || '').trim() if (keyword === 'N') keyword = 'SN'; -- 1.9.0