From b651df304c04900c38b71fbf1d69bc9c3a56e7b1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 2 Sep 2008 06:07:46 -0400 Subject: Implemented a safer method for parsing algebraic moves, since for some reason we weren't always seeing the full move when using looking-at. The way I do it now is to require some kind of whitespace after the SAN move text. --- chess-algebraic.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chess-algebraic.el') diff --git a/chess-algebraic.el b/chess-algebraic.el index 1f76e1a..e9145e7 100644 --- a/chess-algebraic.el +++ b/chess-algebraic.el @@ -55,6 +55,9 @@ This regexp handles both long and short form.") (defconst chess-algebraic-regexp-entire (concat chess-algebraic-regexp "$")) +(defconst chess-algebraic-regexp-ws + (concat chess-algebraic-regexp "\\s-")) + (chess-message-catalog 'english '((clarify-piece . "Clarify piece to move by rank or file") (could-not-clarify . "Could not determine which piece to use") -- cgit v1.2.3