Correct regex for state recovery from persistnet store

This commit is contained in:
lash
2022-04-24 20:53:52 +00:00
parent 10b2e91ab2
commit 41fa4cd895
4 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
- 0.2.2
* Fix composite state factory load regex
- 0.2.1
* Add rocksdb backend
- 0.2.0

View File

@@ -1,6 +1,6 @@
[metadata]
name = shep
version = 0.2.1rc1
version = 0.2.2
description = Multi-state key stores using bit masks
author = Louis Holbrook
author_email = dev@holbrook.no

View File

@@ -1,4 +1,4 @@
re_processedname = r'^_?[A-Z,\.]*$'
re_processedname = r'^_?[A-Z\._]*$'
class StoreFactory:

View File

@@ -153,7 +153,6 @@ class SimpleFileStoreFactory(StoreFactory):
def ls(self):
r = []
import sys
for v in os.listdir(self.__path):
if re.match(re_processedname, v):
r.append(v)