--- loncom/homework/lonmaxima.pm 2006/12/19 17:44:16 1.12 +++ loncom/homework/lonmaxima.pm 2007/04/19 17:40:43 1.13 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Interface routines to MAXIMA CAS # -# $Id: lonmaxima.pm,v 1.12 2006/12/19 17:44:16 www Exp $ +# $Id: lonmaxima.pm,v 1.13 2007/04/19 17:40:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -101,8 +101,8 @@ sub maxima_run { } my $reply=&runscript($socket,$script); &disconnect($socket); - if ($reply=~/^\s*true\s*$/) { return 'EXACT_ANS'; } - if ($reply=~/^\s*false\s*/) { return 'INCORRECT'; } + if ($reply=~/^\s*true\s*$/i) { return 'EXACT_ANS'; } + if ($reply=~/^\s*false\s*$/i) { return 'INCORRECT'; } return 'BAD_FORMULA'; }