mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
allow a 3rd character for first part of language id
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user