Commit 8b94d1b4 authored by Franco Fichtner's avatar Franco Fichtner

template: tweak previous; closes #10

parent 0bf70930
......@@ -19,7 +19,7 @@ sub extract {
# Volt Template:
$line = 1;
pos($_) = 0;
while (m/\G(.*?(?<!\{)\{\{(?!\{).*?lang\._\('(.*?)'\).*?\|?.*?\}\})/sg) {
while (m/\G(.*?(?<!\{)\{\{(?!\{).*?[:]?\s*?lang\._\('(.*?)'\)\s*?[,\]]?.*?\|?.*?\}\})/sg) {
my ( $vars, $str ) = ( '', $2 );
$line += ( () = ( $1 =~ /\n/g ) ); # cryptocontext!
$self->add_entry( $str, $line, $vars );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment