mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 08:27:03 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
lib/server
|
@ -24,7 +24,7 @@ function getSubDir(file, refDir) {
|
|||
// (file: '/website/translated_docs/ko/projectA/test.md', refDir: 'website/translated_docs')
|
||||
// returns 'ko'
|
||||
function getLanguage(file, refDir) {
|
||||
let regexSubFolder = new RegExp(
|
||||
const regexSubFolder = new RegExp(
|
||||
'/' + escapeStringRegexp(path.basename(refDir)) + '/(.*)/.*/'
|
||||
);
|
||||
const match = regexSubFolder.exec(file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue