Skip to content

Suggestion normalize all Platform,  #1

Description

@lygstate

And also generate the detail kernel version number from Platform by reference to
https://en.wikipedia.org/wiki/Comparison_of_Microsoft_Windows_versions

The normlize typescript function

function normalizePlatform(platform: string | null) {
    if (platform === null) {
        return platform
    }
    platform = platform.toLowerCase()
    platform = platform.replace(/\s+/g, '');
    return platform
}
[
  {
    "Platform": "windows5.0",
    "Version": "5.0.2195"
  },
  {
    "Platform": "windows2000",
    "Version": "5.0.2195"
  },
  {
    "Platform": "windowsserver2000",
    "Version": "5.0.2195"
  },
  {
    "Platform": "windows5.1.2600",
    "Version": "5.1.2600"
  },
  {
    "Platform": "windowsserver2003",
    "Version": "5.2.3790"
  },
  {
    "Platform": "windows6.0.6000",
    "Version": "6.0.6000"
  },
  {
    "Platform": "windowsvista",
    "Version": "6.0.6000"
  },
  {
    "Platform": "windowsserver2008",
    "Version": "6.0.6000"
  },
  {
    "Platform": "windows6.1",
    "Version": "6.1.7600"
  },
  {
    "Platform": "windows8",
    "Version": "6.2.9200"
  },
  {
    "Platform": "windows8.0",
    "Version": "6.2.9200"
  },
  {
    "Platform": "windowsserver2012",
    "Version": "6.2.9200"
  },
  {
    "Platform": "windows8.1",
    "Version": "6.2.9600"
  },
  {
    "Platform": "windows10.0.10240",
    "Version": "10.0.10240"
  },
  {
    "Platform": "windows10.0.10586",
    "Version": "10.0.10586"
  },
  {
    "Platform": "windows10.0.14393",
    "Version": "10.0.14393"
  },
  {
    "Platform": "windowsserver2016",
    "Version": "10.0.14393"
  },
  {
    "Platform": "windows10.0.15063",
    "Version": "10.0.15063"
  },
  {
    "Platform": "windows10.0.16299",
    "Version": "10.0.16299"
  },
  {
    "Platform": "windows10.0.17134",
    "Version": "10.0.17134"
  },
  {
    "Platform": "windows10.0.17763",
    "Version": "10.0.17763"
  },
  {
    "Platform": "windows10.0.19041",
    "Version": "10.0.19041"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions