Skip to content

Commit e3e55cc

Browse files
committed
Test comparing property names in lower-case
1 parent 44a4bea commit e3e55cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/start-proxy-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy/environment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function checkJdkSettings(logger: Logger, jdkHome: string) {
9292
"https.proxyPort",
9393
"http.nonProxyHosts",
9494
"java.net.useSystemProxies",
95-
];
95+
].map((val) => val.toLowerCase());
9696

9797
for (const fileToCheck of filesToCheck) {
9898
const file = path.join(jdkHome, fileToCheck);
@@ -104,7 +104,7 @@ export function checkJdkSettings(logger: Logger, jdkHome: string) {
104104
const lines = String(fs.readFileSync(file)).split(os.EOL);
105105
for (const line of lines) {
106106
for (const property of properties) {
107-
if (line.startsWith(`${property}=`)) {
107+
if (line.toLowerCase().startsWith(`${property}=`)) {
108108
logger.info(`Found '${line}' in '${file}'.`);
109109
}
110110
}

0 commit comments

Comments
 (0)