From c9f850ee6f9fec125a2547379f5f77e11eed0933 Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Sat, 1 May 2021 12:32:46 +0200 Subject: [PATCH] fix regex issue in apple order widget Signed-off-by: Benny Samir Hierl --- Apple-Order-Status/Apple-Store-Order-Status.js | 4 ++-- Apple-Order-Status/CHANGELOG | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Apple-Order-Status/Apple-Store-Order-Status.js b/Apple-Order-Status/Apple-Store-Order-Status.js index 780332a..ca68368 100644 --- a/Apple-Order-Status/Apple-Store-Order-Status.js +++ b/Apple-Order-Status/Apple-Store-Order-Status.js @@ -1,7 +1,7 @@ // Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: deep-blue; icon-glyph: shopping-cart; -// Version 1.1.5 +// Version 1.1.7 const cacheMinutes = 60 * 2 const today = new Date() @@ -179,7 +179,7 @@ const getOrderdetails = async (ordernumber, email) => { return v.name + "=" + v.value }) - const xAosStkMatch = resSession.match(/"x-aos-stk":"([\w]+)"/) + const xAosStkMatch = resSession.match(/"x-aos-stk":"([\w-_]+)"/) if (!xAosStkMatch) { throw new Error('Needed x-aos-stk token not found') } diff --git a/Apple-Order-Status/CHANGELOG b/Apple-Order-Status/CHANGELOG index 44f01a8..a46c26c 100644 --- a/Apple-Order-Status/CHANGELOG +++ b/Apple-Order-Status/CHANGELOG @@ -1,3 +1,5 @@ +1.1.7 + - fix regex issue 1.1.3 - script adjusted to the new service logic - fix typo