From 28d4a74d4c51488f2b2eb65b1e49a0a531bc2cb2 Mon Sep 17 00:00:00 2001 From: Alex Stanev Date: Tue, 6 Dec 2011 16:09:19 +0200 Subject: [PATCH] Improvements for Chitanka store search --- src/calibre/gui2/store/stores/chitanka_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/chitanka_plugin.py b/src/calibre/gui2/store/stores/chitanka_plugin.py index a1a22797c8..58ef109dba 100644 --- a/src/calibre/gui2/store/stores/chitanka_plugin.py +++ b/src/calibre/gui2/store/stores/chitanka_plugin.py @@ -40,9 +40,9 @@ class ChitankaStore(BasicStoreConfig, StorePlugin): d.exec_() def search(self, query, max_results=10, timeout=60): - # check for cyrilic symbols before performing search + # check for cyrillic symbols before performing search uquery = unicode(query.strip(), 'utf-8') - reObj = re.search(u'^[а-яА-Я\\d]{4,}[а-яА-Я\\d\\s]*$', uquery) + reObj = re.search(u'^[а-яА-Я\\d\\s]{3,}$', uquery) if not reObj: return