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