fix regex issue in apple order widget

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2021-05-01 12:32:46 +02:00
parent 1b9d5b46ca
commit c9f850ee6f
2 changed files with 4 additions and 2 deletions

View file

@ -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')
}

View file

@ -1,3 +1,5 @@
1.1.7
- fix regex issue
1.1.3
- script adjusted to the new service logic
- fix typo