mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-06 13:37:41 +00:00
hotfix ecosia widget
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
be38b9a430
commit
bb094062f4
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ let widgetInputRAW = args.widgetParameter;
|
||||||
let token;
|
let token;
|
||||||
if (widgetInputRAW !== null) {
|
if (widgetInputRAW !== null) {
|
||||||
token = widgetInputRAW.toString().trim();
|
token = widgetInputRAW.toString().trim();
|
||||||
if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/.text(token) === false) {
|
if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/.test(token) === false) {
|
||||||
throw new Errpr('Invalid Token Format')
|
throw new Errpr('Invalid Token Format')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue