mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 23:37:41 +00:00
fix regex issue in apple order widget
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
1b9d5b46ca
commit
c9f850ee6f
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// Variables used by Scriptable.
|
// Variables used by Scriptable.
|
||||||
// These must be at the very top of the file. Do not edit.
|
// These must be at the very top of the file. Do not edit.
|
||||||
// icon-color: deep-blue; icon-glyph: shopping-cart;
|
// icon-color: deep-blue; icon-glyph: shopping-cart;
|
||||||
// Version 1.1.5
|
// Version 1.1.7
|
||||||
|
|
||||||
const cacheMinutes = 60 * 2
|
const cacheMinutes = 60 * 2
|
||||||
const today = new Date()
|
const today = new Date()
|
||||||
|
@ -179,7 +179,7 @@ const getOrderdetails = async (ordernumber, email) => {
|
||||||
return v.name + "=" + v.value
|
return v.name + "=" + v.value
|
||||||
})
|
})
|
||||||
|
|
||||||
const xAosStkMatch = resSession.match(/"x-aos-stk":"([\w]+)"/)
|
const xAosStkMatch = resSession.match(/"x-aos-stk":"([\w-_]+)"/)
|
||||||
if (!xAosStkMatch) {
|
if (!xAosStkMatch) {
|
||||||
throw new Error('Needed x-aos-stk token not found')
|
throw new Error('Needed x-aos-stk token not found')
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
1.1.7
|
||||||
|
- fix regex issue
|
||||||
1.1.3
|
1.1.3
|
||||||
- script adjusted to the new service logic
|
- script adjusted to the new service logic
|
||||||
- fix typo
|
- fix typo
|
||||||
|
|
Loading…
Add table
Reference in a new issue