Travis build: 802 [ci skip]

This commit is contained in:
Travis CI
2018-01-01 16:45:34 +00:00
parent 6293796ef2
commit e3f75a55e9
6 changed files with 132 additions and 8 deletions

View File

@ -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