Fix Windows server version (#298)

This commit is contained in:
Maycon Santos
2023-11-24 17:42:31 +01:00
committed by GitHub
parent 2613948cdf
commit dd67ab6dcb

View File

@@ -1,10 +1,14 @@
export const formatOS = (os) => {
if (os.startsWith("windows 10")) {
if (os.lowerCase.startsWith("windows 10")) {
return "Windows 10";
}
if (os.lowerCase.startsWith("windows server 10")) {
return "Windows Server";
}
if (os.startsWith("Darwin")) {
return os.replace("Darwin", "MacOS");
}