Sha256: 7230a1152039713fe53b69e4a2dccde87a0704ed3a6545fb9f2bd809e97a1d9b
Contents?: true
Size: 419 Bytes
Versions: 53
Compression:
Stored size: 419 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.joinPathSegments = void 0; function joinPathSegments(a, b, separator) { /** * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). */ if (a.endsWith(separator)) { return a + b; } return a + separator + b; } exports.joinPathSegments = joinPathSegments;
Version data entries
53 entries across 53 versions & 4 rubygems