Apply suggestion to l10n/make_board.js
authorLaurent Mazet <laurent.mazet@softndesign.org>
Sat, 23 May 2020 19:50:36 +0000 (19:50 +0000)
committerLaurent Mazet <laurent.mazet@softndesign.org>
Sat, 23 May 2020 19:50:36 +0000 (19:50 +0000)
l10n/make_board.js

index bea6c504aea15b79a78a55ed091a91fe42abd74b..4ec228a09e9311b0eee3ce735f645fca88fa5e48 100755 (executable)
@@ -52,7 +52,7 @@ for (const line of htmlText.split("\n")) {
         /* Get language name */
         const regexpLang = /mw-headline"[^<]*">(?<lang>[^<]*)</gu;
         lang = regexpLang.exec(line).groups.lang;
-        for (key in code.langFr) {
+        for (const key of Object.keys(code.langFr)) {
             if (code.langFr[key] === lang) {
                 lang = code.langEn[key];
                 break;