From 8b58e951e39b444d883b11e38591cde3f452dd5f Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 7 Aug 2021 21:38:52 +0200 Subject: [PATCH] metadata search with keys containing _- --- copyparty/u2idx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/u2idx.py b/copyparty/u2idx.py index 34f37da4..c1bd720c 100644 --- a/copyparty/u2idx.py +++ b/copyparty/u2idx.py @@ -88,7 +88,7 @@ class U2idx(object): is_date = False kw_key = ["(", ")", "and ", "or ", "not "] kw_val = ["==", "=", "!=", ">", ">=", "<", "<=", "like "] - ptn_mt = re.compile(r"^\.?[a-z]+$") + ptn_mt = re.compile(r"^\.?[a-z_-]+$") mt_ctr = 0 mt_keycmp = "substr(up.w,1,16)" mt_keycmp2 = None