Travis build: 537

This commit is contained in:
30secondsofcode
2018-09-27 13:59:46 +00:00
parent 711e3b8158
commit 2d918edc1c
13 changed files with 39 additions and 13 deletions

View File

@ -6,8 +6,7 @@ Use `String.replace` and a regular expression to add the character specified by
Omit the third parameter, `indent`, to use a default indentation character of `' '`.
```js
const indentString = (str, count, indent = ' ') =>
str.replace(/^/mg, indent.repeat(count));
const indentString = (str, count, indent = ' ') => str.replace(/^/gm, indent.repeat(count));
```
```js