fix token test generator
This commit is contained in:
parent
e553f13cef
commit
c9e86d3aa9
2 changed files with 88 additions and 88 deletions
|
|
@ -11,9 +11,9 @@ function generateTestData() {
|
|||
var docs = fs.readdirSync(cwd + root);
|
||||
var specialDocs = fs.readdirSync(cwd);
|
||||
var modes = fs.readdirSync(cwd + "../").filter(function(x){
|
||||
return /^\w+_highlight_rules.js$/.test(x);
|
||||
return !/(_highlight_rules|behaviour|worker)\.js$/.test(x) && /\.js$/.test(x);
|
||||
}).map(function(x) {
|
||||
return x.replace(/_highlight_rules.js$/, "");
|
||||
return x.replace(/\.js$/, "");
|
||||
});
|
||||
|
||||
console.log("Docs:", docs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue