Skip to content

Commit

Permalink
Tweak removeIndentation util
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Nov 7, 2017
1 parent 436649e commit cb08984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export function niceDate (string) {
}

export function removeIndentation (string) {
return string.replace(/\n +/g, '\n')
return string
.replace(/\n +/g, '\n')
.replace(/^ +/, '')
}

export function isLink (string) {
Expand Down

0 comments on commit cb08984

Please sign in to comment.