--- loncom/publisher/lonpublisher.pm 2009/02/11 11:49:22 1.251 +++ loncom/publisher/lonpublisher.pm 2009/03/09 20:10:55 1.252 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.251 2009/02/11 11:49:22 schafran Exp $ +# $Id: lonpublisher.pm,v 1.252 2009/03/09 20:10:55 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1652,7 +1652,7 @@ sub phasetwo { unlink($srcd.'/'.$filename); unlink($srcd.'/'.$filename.'.meta'); } else { - if ($filename=~/\Q$srcf\E\.(\d+)\.\Q$srct\E$/) { + if ($filename=~/^\Q$srcf\E\.(\d+)\.\Q$srct\E$/) { $maxversion=($1>$maxversion)?$1:$maxversion; } }