Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 17, 2019
1 parent 578f3a7 commit 575ba7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = string => {
return string;
}

const regExp = new RegExp(`^[ \\t]{${indent}}`, 'gm');
const regex = new RegExp(`^[ \\t]{${indent}}`, 'gm');

return string.replace(regExp, '');
return string.replace(regex, '');
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"whitespace",
"space",
"tab",
"string",
"str"
"string"
],
"dependencies": {
"min-indent": "^1.0.0"
Expand Down

0 comments on commit 575ba7d

Please sign in to comment.