marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.02k stars 1.33k forks source link

Regular expression error? #162

Closed newbeex closed 7 years ago

newbeex commented 8 years ago

In IE7, keys cannot start with a digit or contain certain chars.

But the regular expression is replaced by a string "d"

var ieKeyFix = function(key) { return key.replace(/^d/, '_$&').replace(forbiddenCharsRegex, '_') }

marcuswestin commented 7 years ago

@newbeex: sorry, I don't understand what the problem is. If you have an example that isn't working the way you expect, please include that.