Diff

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 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
parent 2183:13a8bbf256dd
child 2289:aa984980a4dc
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