[LON-CAPA-cvs] cvs: loncom /interface/spreadsheet assesscalc.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 08 Dec 2004 00:15:19 -0000


albertel		Tue Dec  7 19:15:19 2004 EDT

  Modified files:              
    /loncom/interface/spreadsheet	assesscalc.pm 
  Log:
  - parameter identifiers can conatin things more interesting then \w
  
  
Index: loncom/interface/spreadsheet/assesscalc.pm
diff -u loncom/interface/spreadsheet/assesscalc.pm:1.34 loncom/interface/spreadsheet/assesscalc.pm:1.35
--- loncom/interface/spreadsheet/assesscalc.pm:1.34	Tue Nov  2 15:48:02 2004
+++ loncom/interface/spreadsheet/assesscalc.pm	Tue Dec  7 19:15:18 2004
@@ -1,5 +1,5 @@
 #
-# $Id: assesscalc.pm,v 1.34 2004/11/02 20:48:02 albertel Exp $
+# $Id: assesscalc.pm,v 1.35 2004/12/08 00:15:18 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -348,7 +348,7 @@
     #
     # Cascade Up
     my $space=$what;
-    $space=~s/\.\w+$//;
+    $space=~s/\.[^._]+$//;
     if ($space ne '0') {
 	my @parts=split(/_/,$space);
 	my $id=pop(@parts);