diff --git a/.editorconfig b/.editorconfig
index e633e8a6a316706e81e8e0d3a4019fc76c3205e8..cca6685351efdb26782991d2f2bdb9b1b1d8f9a1 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -27,6 +27,8 @@ indent_size = 2
 indent_style = space
 indent_size = 4
 
+[*.pl]
+
 [*.py]
 indent_style = space
 indent_size = 4
diff --git a/contrib/i18n-scan.pl b/contrib/i18n-scan.pl
index 29abefccaeb6da162d4e8f3110fba27f6c2f1bdf..e6aaf0de20f96ea05ae95d7233945b2780891a7b 100755
--- a/contrib/i18n-scan.pl
+++ b/contrib/i18n-scan.pl
@@ -79,7 +79,7 @@ if( open F, "find @ARGV -type f '(' -name '*.html' -o -name '*.lua' ')' |" )
 				{
 					my $stag = quotemeta $1;
 					my $etag = $stag;
-					   $etag =~ s/\[/]/g;
+					$etag =~ s/\[/]/g;
 
 					( $res ) = extract_tagged($code, $stag, $etag);