-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
The unescape() function was deprecated in JavaScript version 1.5. Use decodeURI() or decodeURIComponent() instead.
The unescape() function decodes an encoded string.
https://www.w3schools.com/jsref/jsref_unescape.asp
Can you update the lib? change the unescape function. thanks~~
// in cookieStore.js
function read(key) {
if (!key || !_has(key)) { return null }
var regexpStr = "(?:^|.*;\\s*)" +
escape(key).replace(/[\-\.\+\*]/g, "\\$&") +
"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"
return unescape(doc.cookie.replace(new RegExp(regexpStr), "$1"))
}
Metadata
Metadata
Assignees
Labels
No labels