[Petal] Bug in Petal::Hash::Var.pm

Jean-Michel Hiver jhiver at mkdoc.com
Tue Jan 28 14:16:47 GMT 2003


I have spotted a bug in Petal::Hash::Var.

The following expression works:

  <span
    petal:define="details here/plugin --flo::plugin::Account::Details"
    petal:replace="details/uri --ticketId here/ticket/id"
  >
    /activate.html
  </span>

However if you replace "details/uri --ticketId here/ticket/id" with
"details/uri --t here/ticket/id" then the method parameters aren't
passed at all.

The problem lies in the Petal::Hash::Var $VARIABLE_RE regex, which
should really be "(?:--)?[A-Za-z\_][^ \t]*" I think.

The bug will be fixed in the next release...
Cheers,  
-- 
Building a better web - http://www.mkdoc.com/
---------------------------------------------
Jean-Michel Hiver
jhiver at mkdoc.com  - +44 (0)114 255 8097
Homepage: http://www.webmatrix.net/



More information about the Petal mailing list