From 9879147ee0ddc239362aecf18329b401c74b6ec8 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 27 Dec 2017 15:44:46 +0200 Subject: [PATCH] convert. --- pysollib/hint.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pysollib/hint.py b/pysollib/hint.py index f0c9b76c..a0a0f035 100644 --- a/pysollib/hint.py +++ b/pysollib/hint.py @@ -879,8 +879,9 @@ class FreeCellSolver_Hint(Base_Solver_Hint): if str_ != '-': put_str(game.reserves[i], str_) continue - g = re.findall(r'\b(' + CARD_RE + r')\b', line) - for str_ in g: + m = re.match(r'^:?\s*(.*)', line) + assert m + for str_ in my_find_re(r'(' + CARD_RE + r')', m): put_str(game.rows[stack_idx], str_) stack_idx += 1