git-remote-mediawiki: change style in a regexp
Change '[\n]' to '\n': brackets are useless here. Signed-off-by: Célestin Matte <celestin.matte@ensimag.fr> Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Célestin Matte committed
Jun 14, 2013 at 15:50 UTC
477d4d4235490065a718764fd241d77edd6904cd
1 file changed
+1
-1
contrib/mw-to-git/git-remote-mediawiki.perl
+1
-1
@@ -1271,7 +1271,7 @@ sub get_mw_namespace_id {
1271
# Look at configuration file, if the record for that namespace is
1272
# already cached. Namespaces are stored in form:
1273
# "Name_of_namespace:Id_namespace", ex.: "File:6".
1274
- my @temp = split(/[\n]/, run_git("config --get-all remote."
1274
+ my @temp = split(/\n/, run_git("config --get-all remote."
1275
. $remotename .".namespaceCache"));
1276
chomp(@temp);
1277
foreach my $ns (@temp) {