forked from MapComplete/MapComplete
Merge pull request #274 from waldbrand/improve-theme-file-filtering
When filtering theme files, be a bit more strict
This commit is contained in:
commit
8d32da82bb
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const layerFiles = ScriptUtils.readDirRecSync("./assets/layers")
|
|||
}
|
||||
})
|
||||
const themeFiles: any[] = ScriptUtils.readDirRecSync("./assets/themes")
|
||||
.filter(path => path.indexOf(".json") > 0)
|
||||
.filter(path => path.endsWith(".json"))
|
||||
.filter(path => path.indexOf("license_info.json") < 0)
|
||||
.map(path => {
|
||||
return JSON.parse(readFileSync(path, "UTF8"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue