From 5b8a7012da9cd5b7ba2a45c9df5bad8b2cade252 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 5 Nov 2014 09:13:43 +0100 Subject: [PATCH] locales.pl: auch INCLUDE/PROCESS auf .js-Datei erkennen --- scripts/locales.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/locales.pl b/scripts/locales.pl index 65bd178d4..51db82f11 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -617,9 +617,9 @@ sub scanhtmlfile { \s+ # Mindestens ein Whitespace [\'\"]? # Anfang des Dateinamens ([^\s]+) # Beliebig viele Nicht-Whitespaces -- Dateiname - \.html # Endung ".html", ansonsten kann es der Name eines Blocks sein + \.(html|js) # Endung ".html" oder ".js", ansonsten kann es der Name eines Blocks sein /ix) { - my $new_file_name = "$basedir/templates/webpages/$1.html"; + my $new_file_name = "$basedir/templates/webpages/$1.$2"; $cached{$file}{scanh}{$new_file_name} = 1; substr $line, $LAST_MATCH_START[1], $LAST_MATCH_END[0] - $LAST_MATCH_START[0], ''; } -- 2.20.1