/**
 * Checks if the path is the OS root path, such as "/" or "C:\"
 */ export const isRootPath = ( p ) => p === '/' || windowsPathRegex . test ( p ) ; const windowsPathRegex = /^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/]+[^\\/]+)?[\\/]$/ ;