Skip to content

Commit

Permalink
Fix unnecessary string escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
shouze committed May 30, 2017
1 parent 99adc0e commit 5c0ae3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ got \`${typeof Element}\``

// Replace tabs with spaces, and add necessary indentation in front of each new line
return stringified
.replace(/\\\'/g, "'")
.replace(/\t/g, spacer(1, tabStop))
.replace(/\n([^$])/g, `\n${spacer(lvl + 1, tabStop)}$1`);
}
Expand Down

0 comments on commit 5c0ae3e

Please sign in to comment.