mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 01:57:28 +02:00
ESLintify Part 3 (#846)
* ESLintify Part 3 * ESLintify Part 3 * ESLintify Part 3
This commit is contained in:
parent
5ac2cee658
commit
a7a214fb3a
54 changed files with 435 additions and 497 deletions
|
@ -17,7 +17,7 @@ function unindent(code) {
|
|||
|
||||
const indent = lines[0].match(/^\s*/)[0];
|
||||
for (let i = 0; i < lines.length; ++i) {
|
||||
lines[i] = lines[i].replace(new RegExp('^' + indent), '');
|
||||
lines[i] = lines[i].replace(new RegExp(`^${indent}`), '');
|
||||
}
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue