vue-cookies icon indicating copy to clipboard operation
vue-cookies copied to clipboard

Problem with getting cookies with dot in their names.

Open rqyrku opened this issue 4 years ago • 1 comments

I'm having an issue where the library is not able to get cookie values or keys if the cookie name is smth like this: bar.faz

Methods like this.$cookies.get('bar.faz') and this.$cookies.isKey('bar.faz) do not seem to work.

The issue looks like it's on this line: new RegExp('(?:^|;\\s*)' + encodeURIComponent(key).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie)

rqyrku avatar Aug 14 '20 11:08 rqyrku

Did you find a fix for this?

MathyEM avatar Mar 16 '22 15:03 MathyEM