checked type

This commit is contained in:
Christopher Pickering 2022-07-06 11:31:47 -05:00
parent e2f54d3919
commit fce8dd14a1
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
2 changed files with 6 additions and 2 deletions

View file

@ -37,7 +37,7 @@ jobs:
verbose: true
test_npm:
name: python ${{ matrix.python-version }} on ${{ matrix.os }} with node ${{ matrix.node }}
name: node ${{ matrix.node }} with python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:

View file

@ -8,7 +8,11 @@ PythonShell.defaultOptions = {
};
function clean(output) {
return output.replaceAll('python -m ', '');
if (typeof output === 'string' || output instanceof String)
{
return output.replaceAll('python -m ', '');
}
return output;
}
const yargs = require('yargs');