fix bug: localStrage dont store RegExp objects