Skip to content

Commit

Permalink
Fix regex for non english versioned docs (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored and JoelMarcey committed Jan 23, 2018
1 parent c81609d commit 43e80fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/server/readMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ function generateMetadataDocs() {
process.exit(1);
}

const regexSubFolder = /translated_docs\/(.*)\/.*/;

const enabledLanguages = env.translation
.enabledLanguages()
.map(language => language.tag);
Expand Down Expand Up @@ -236,6 +234,7 @@ function generateMetadataDocs() {
});

// metadata for non-english docs
const regexSubFolder = /translated_docs\/(.*?)\/.*/;
files = glob.sync(CWD + '/translated_docs/**');
files.forEach(file => {
let language = 'en';
Expand Down

0 comments on commit 43e80fc

Please sign in to comment.