Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Correctly identify Windows hosts when os.name property starts with "win" #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 17, 2012

  1. Correctly identify Windows hosts when os.name property starts with "W…

    …indows"
    
    
    os.indexOf("win") <= 0 will return true if "win" is not found *or* the string starts with
    "win". This will improperly treat platforms which start with "win", e.g. "Windows 7" as if
    they are *nix. Testing os.indexOf("win") < 0 will return true only if "win" is not found.
    sjmurdoch committed Jul 17, 2012
    Configuration menu
    Copy the full SHA
    ec6fb29 View commit details
    Browse the repository at this point in the history