RegEx support for Safari
This commit is contained in:
parent
e34a790d7a
commit
c640cea1cb
1 changed files with 2 additions and 2 deletions
|
|
@ -67,9 +67,9 @@ export function getDeviceIdValue(){
|
||||||
return cookieValuesSplit[1];
|
return cookieValuesSplit[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
const cookieValueMatch = cookieValue.match("(?<=did=).*?(?=&)");
|
const cookieValueMatch = cookieValue.match("^did=[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}");
|
||||||
if(cookieValueMatch){
|
if(cookieValueMatch){
|
||||||
return cookieValueMatch[0];
|
return cookieValueMatch[0].split('=')[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue