sheng-tool
    Preparing search index...

    Function isPath

    • 验证路径,包含 Linux 和 Windows 的文件地址和文件夹地址。

      Parameters

      • str: string

      Returns boolean

      0.0.1

      isPath('D:\\')                // true
      isPath('D:\\1.md') // true
      isPath('/home/') // true
      isPath('/home/index.html') // true