diff --git a/scripts/gen-i18n.js b/scripts/gen-i18n.js index ff5b14f593..d58bce2e63 100755 --- a/scripts/gen-i18n.js +++ b/scripts/gen-i18n.js @@ -85,7 +85,7 @@ function getFormatStrings(str) { const formatStrings = new Set(); let match; - while ( (match = formatStringRe.exec(str) ) !== null) { + while ( (match = formatStringRe.exec(str)) !== null ) { const placeholder = match[1]; // Minus the leading '%' if (placeholder === '%') continue; // Literal % is %%