Changeset

2271:b34f4591366a

mod_storage_xmlarchive: Fix date pattern in purge (related to #725)
author Kim Alvefur <zash@zash.se>
date Sat, 13 Aug 2016 16:23:25 +0200
parents 2270:9c99200afd17
children 2272:65d9093525ca
files mod_storage_xmlarchive/mod_storage_xmlarchive.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Fri Aug 12 18:20:08 2016 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sat Aug 13 16:23:25 2016 +0200
@@ -219,7 +219,7 @@
 function provider:purge(username)
 	for store in dm.stores(username, module.host) do
 		local dates = dm.list_load(username, module.host, store) or empty;
-		if dates[1] and type(dates[1]) == "string" and dates[1]:match("^%d%d%d%d%-%d%d-%d%d$") then
+		if dates[1] and type(dates[1]) == "string" and dates[1]:match("^%d%d%d%d%-%d%d%-%d%d$") then
 			module:log("info", "Store %s looks like an archive store, emptying it...", store);
 			provider:open(store, "archive"):delete(username);
 		end