Sha256: 15a1a6b9f2a2d6d85f5de10ad3d6eb25fe4ca0db0397bc8e2dd89361780a1925
Contents?: true
Size: 289 Bytes
Versions: 58
Compression:
Stored size: 289 Bytes
Contents
'use strict'; module.exports = path => { const isExtendedLengthPath = /^\\\\\?\\/.test(path); const hasNonAscii = /[^\u0000-\u0080]+/.test(path); // eslint-disable-line no-control-regex if (isExtendedLengthPath || hasNonAscii) { return path; } return path.replace(/\\/g, '/'); };
Version data entries
58 entries across 58 versions & 3 rubygems