Comparing version 5.0.0 to 5.1.0
/** | ||
Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`. | ||
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths and don't contain any non-ascii characters. | ||
[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths. | ||
@@ -6,0 +6,0 @@ @param path - A Windows backslash path. |
export default function slash(path) { | ||
const isExtendedLengthPath = /^\\\\\?\\/.test(path); | ||
const isExtendedLengthPath = path.startsWith('\\\\?\\'); | ||
@@ -4,0 +4,0 @@ if (isExtendedLengthPath) { |
{ | ||
"name": "slash", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Convert Windows backslash paths to slash paths", | ||
@@ -35,6 +35,6 @@ "license": "MIT", | ||
"devDependencies": { | ||
"ava": "^4.3.3", | ||
"tsd": "^0.24.1", | ||
"xo": "^0.52.3" | ||
"ava": "^5.2.0", | ||
"tsd": "^0.28.1", | ||
"xo": "^0.54.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3254