mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
This commit only adds a single package and all of its transitive dependencies. The github-linguist package will be used for counting lines of code as a baseline for databases we are analyzing.
11 lines
185 B
JavaScript
11 lines
185 B
JavaScript
'use strict';
|
|
module.exports = input => {
|
|
const isExtendedLengthPath = /^\\\\\?\\/.test(input);
|
|
|
|
if (isExtendedLengthPath) {
|
|
return input;
|
|
}
|
|
|
|
return input.replace(/\\/g, '/');
|
|
};
|