User:Aesulus/common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
function getPekoCookie(key) {
const matchArray = document.cookie.match(new RegExp('\\b' + key + '=([^;]+)'));
return (matchArray == null) ? null : matchArray[1];