git-remote-mediawiki: change style in a regexp
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki.perl
index 0169d422beaf32176046f996eb77bf322d5c0df2..b6dfe18005137ad83938af4cca5473a18e4ff94a 100755 (executable)
@@ -1271,7 +1271,7 @@ sub get_mw_namespace_id {
                # Look at configuration file, if the record for that namespace is
                # already cached. Namespaces are stored in form:
                # "Name_of_namespace:Id_namespace", ex.: "File:6".
-               my @temp = split(/[\n]/, run_git("config --get-all remote."
+               my @temp = split(/\n/, run_git("config --get-all remote."
                                                . $remotename .".namespaceCache"));
                chomp(@temp);
                foreach my $ns (@temp) {