Also look for the CodeQL bundle at the custom GitHub AE endpoint.

This commit is contained in:
Chris Gavin
2021-02-11 15:13:22 +00:00
parent 781e3bc540
commit f8c5dacab5
27 changed files with 2159 additions and 3 deletions

22
node_modules/split-on-first/index.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
module.exports = (string, separator) => {
if (!(typeof string === 'string' && typeof separator === 'string')) {
throw new TypeError('Expected the arguments to be of type `string`');
}
if (separator === '') {
return [string];
}
const separatorIndex = string.indexOf(separator);
if (separatorIndex === -1) {
return [string];
}
return [
string.slice(0, separatorIndex),
string.slice(separatorIndex + separator.length)
];
};