Skip to content

Commit 01fc311

Browse files
authored
chore: replace deprecated octal escape sequences with hex (microsoft#197518)
1 parent d95f2e0 commit 01fc311

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/npm/preinstall.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const patchNodeVersion = parseInt(nodeVersion[3]);
1111

1212
if (!process.env['VSCODE_SKIP_NODE_VERSION_CHECK']) {
1313
if (majorNodeVersion < 18 || (majorNodeVersion === 18 && minorNodeVersion < 15)) {
14-
console.error('\033[1;31m*** Please use node.js versions >=18.15.x and <19.\033[0;0m');
14+
console.error('\x1b[1;31m*** Please use node.js versions >=18.15.x and <19.\x1b[0;0m');
1515
err = true;
1616
}
1717
if (majorNodeVersion >= 19) {
18-
console.warn('\033[1;31m*** Warning: Versions of node.js >= 19 have not been tested.\033[0;0m')
18+
console.warn('\x1b[1;31m*** Warning: Versions of node.js >= 19 have not been tested.\x1b[0;0m')
1919
}
2020
}
2121

@@ -35,18 +35,18 @@ if (
3535
) ||
3636
majorYarnVersion >= 2
3737
) {
38-
console.error('\033[1;31m*** Please use yarn >=1.10.1 and <2.\033[0;0m');
38+
console.error('\x1b[1;31m*** Please use yarn >=1.10.1 and <2.\x1b[0;0m');
3939
err = true;
4040
}
4141

4242
if (!/yarn[\w-.]*\.c?js$|yarnpkg$/.test(process.env['npm_execpath'])) {
43-
console.error('\033[1;31m*** Please use yarn to install dependencies.\033[0;0m');
43+
console.error('\x1b[1;31m*** Please use yarn to install dependencies.\x1b[0;0m');
4444
err = true;
4545
}
4646

4747
if (process.platform === 'win32') {
4848
if (!hasSupportedVisualStudioVersion()) {
49-
console.error('\033[1;31m*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.\033[0;0m');
49+
console.error('\x1b[1;31m*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.\x1b[0;0m');
5050
err = true;
5151
}
5252
if (!err) {

0 commit comments

Comments
 (0)