|
@@ -18,7 +18,7 @@ function matchSlashes(path) {
|
|
|
* @memberof pathUtils
|
|
* @memberof pathUtils
|
|
|
*/
|
|
*/
|
|
|
function hasHeadingSlash(path) {
|
|
function hasHeadingSlash(path) {
|
|
|
- if (path == null || path === '') {
|
|
|
|
|
|
|
+ if (path === '') {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
const match = matchSlashes(path);
|
|
const match = matchSlashes(path);
|
|
@@ -32,7 +32,7 @@ function hasHeadingSlash(path) {
|
|
|
* @memberof pathUtils
|
|
* @memberof pathUtils
|
|
|
*/
|
|
*/
|
|
|
function hasTrailingSlash(path) {
|
|
function hasTrailingSlash(path) {
|
|
|
- if (path == null || path === '') {
|
|
|
|
|
|
|
+ if (path === '') {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
const match = matchSlashes(path);
|
|
const match = matchSlashes(path);
|