Travis build: 802 [ci skip]
This commit is contained in:
@ -7,9 +7,7 @@ Use a regular expression to test if the specified flags are prefixed with `-` or
|
||||
|
||||
```js
|
||||
const hasFlags = (...flags) =>
|
||||
flags.every(flag => process.argv.includes(
|
||||
/^-{1,2}/.test(flag) ? flag : '--' + flag
|
||||
));
|
||||
flags.every(flag => process.argv.includes(/^-{1,2}/.test(flag) ? flag : '--' + flag));
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user