From af89e25c82930965984d9b9edd00b16091a7f54e Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <gua@adhisimon.org>
Date: Fri, 12 Feb 2016 13:12:23 +0700
Subject: [PATCH] stok tidak tersedia regex

---
 gentong.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gentong.js b/gentong.js
index 26fc31a..4aab7af 100644
--- a/gentong.js
+++ b/gentong.js
@@ -335,6 +335,9 @@ function responseCodeFromMessage(message) {
     else if (message.toLowerCase().indexOf('saldo di account anda saat ini tidak mencukupi') >= 0) {
         return '40';
     }
+    else if (message.search(/stok product .* tidak tersedia ke nomor .* dari pilihan2 yg tersedia/i) >= 0) {
+        return '13';
+    }
     
     return;
 }
-- 
1.9.0