fix(nuxt): decode URI components in cache driver methods (#30973)

This commit is contained in:
Vahagn Zaqaryan 2025-02-20 20:13:52 +04:00 committed by Daniel Roe
parent 110f1d0b2f
commit 9b20c9c327
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -7,7 +7,7 @@ import lruCache from 'unstorage/drivers/lru-cache'
/**
* @param {string} item
*/
const normalizeFsKey = item => item.replaceAll(':', '_')
const normalizeFsKey = item => decodeURIComponent(item.replaceAll(':', '_'))
/**
* @param {{ base: string }} opts