• Check if the given path is an absolute path.

    Parameters

    • p: string
    • regex: undefined | RegExp

    Returns boolean