[LON-CAPA-cvs] cvs: loncom /xml run.pm

raeburn raeburn at source.lon-capa.org
Thu Mar 12 16:20:13 EDT 2020


raeburn		Thu Mar 12 20:20:13 2020 EDT

  Modified files:              
    /loncom/xml	run.pm 
  Log:
  - Bug 6925. Support complex data structures, e.g., $hash{a}{b}{c} when
    evaluating variable refs. (Existing regex was collapsing this to $hash{c}) 
  
  
Index: loncom/xml/run.pm
diff -u loncom/xml/run.pm:1.65 loncom/xml/run.pm:1.66
--- loncom/xml/run.pm:1.65	Sun Nov 10 20:40:59 2019
+++ loncom/xml/run.pm	Thu Mar 12 20:20:13 2020
@@ -1,6 +1,6 @@
 package Apache::run;
 #
-# $Id: run.pm,v 1.65 2019/11/10 20:40:59 raeburn Exp $
+# $Id: run.pm,v 1.66 2020/03/12 20:20:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -41,7 +41,7 @@
              #             or  hash dereferences {}
              # the ^$ and ^& is because we do this iteratively
              #    $a[$c] becomes $a[3] which then evaluates
-             ([\[\{][^\$\&\]\}]+[\]\}])*?
+             ((?:[\[\{][^\$\&\]\}]+[\]\}])+|)
              # $3 is the list of arguments
              (\([^\$\&\)]+\))*?
                 # only match the above if there is not { [ ( coming up




More information about the LON-CAPA-cvs mailing list