0.5.9 • Published 1 year ago
get-safe-reg v0.5.9
Get safe regular-expression
- GIT
- NPM
!!Important!!
Wrose case on compress code with cache currying
- Bad (Do not use it in compresss code)
const cache={};
export default name => cacheReg(cache)(getRegString)(name);
- Good
const cache = cacheReg({})(getRegString)
export default name => cache(name);