[htmltmpl] html::template::expr '.' fix
Brought to you by:
samtregar
From: Neil <htm...@ia...> - 2003-11-03 23:03:22
|
Hello Possibly the worlds second smallest patch... In html::template::expr the character '.' should IMO be part of variables. I use this to use things like 'dc.title'. --- template/Expr.pm.orig 2003-11-03 22:56:55.000000000 +0000 +++ template/Expr.pm 2003-11-03 22:57:33.000000000 +0000 @@ -46,7 +46,7 @@ args : <leftop: subexpression ',' subexpression> -var : /[A-Za-z_][A-Za-z0-9_]*/ { \\\$item[1] } +var : /[A-Za-z_][A-Za-z0-9_\.]*/ { \\\$item[1] } literal : /-?\\d*\\.\\d+/ { \$item[1] } | /-?\\d+/ { \$item[1] } |