From 66f14eb096ba84841fac34a4cd10686aa9033b6b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 31 Mar 2010 21:29:39 +0200 Subject: [PATCH] Allow lower-case promochar in moves of type h8=Q Updated the parser rules. Other move formats already allowed this. --- parser.l | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.l b/parser.l index 348bd15..f17cd8a 100644 --- a/parser.l +++ b/parser.l @@ -325,7 +325,7 @@ extern void CopyBoard P((Board to, Board from)); return (int) result; } -[a-l][0-9]((=?\(?[A-Z]\)?)|=)? { +[a-l][0-9]((=?\(?[A-Za-z]\)?)|=)? { /* * Pawn move, possibly with promotion */ @@ -343,7 +343,7 @@ extern void CopyBoard P((Board to, Board from)); cl.ffIn = yytext[0] - AAA; cl.rtIn = yytext[1] - ONE; cl.ftIn = yytext[0] - AAA; - c = cl.promoCharIn = yytext[2+skip]; + c = cl.promoCharIn = ToLower(yytext[2+skip]); /* [HGM] do not allow values beyond board size */ if(cl.rtIn >= BOARD_HEIGHT || -- 1.7.0.4