allow a 3rd character for first part of language id

This commit is contained in:
Tyler Leonhardt
2021-06-08 09:48:00 -07:00
parent d5cb56faf7
commit 388b2cbd82

View File

@@ -25,7 +25,7 @@ function update(options) {
throw new Error(`${location} doesn't exist.`);
}
let locExtFolder = idOrPath;
if (/^\w{2}(-\w+)?$/.test(idOrPath)) {
if (/^\w{2,3}(-\w+)?$/.test(idOrPath)) {
locExtFolder = path.join('..', 'vscode-loc', 'i18n', `vscode-language-pack-${idOrPath}`);
}
let locExtStat = fs.statSync(locExtFolder);