From: H.G. Muller Date: Wed, 31 Mar 2010 19:29:39 +0000 (+0200) Subject: Allow lower-case promochar in moves of type h8=Q X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=66f14eb096ba84841fac34a4cd10686aa9033b6b;p=xboard.git Allow lower-case promochar in moves of type h8=Q Updated the parser rules. Other move formats already allowed this. --- 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 ||