chowdown import folder syntax support

This commit is contained in:
vabene1111
2021-02-18 09:36:13 +01:00
parent 73a24a8ef0
commit fef6f695ce
2 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ class Chowdown(Integration):
def import_file_name_filter(self, zip_info_object):
print("testing", zip_info_object.filename)
return re.match(r'^_recipes/([A-Za-z\d\s-])+.md$', zip_info_object.filename)
return re.match(r'^(_)*recipes/([A-Za-z\d\s-])+.md$', zip_info_object.filename)
def get_recipe_from_file(self, file):
ingredient_mode = False