forked from MapComplete/MapComplete
Refactoring: split 'Utils' into multiple files; fix some stray uppercase-method names
This commit is contained in:
parent
81be4db044
commit
3ec89826e4
97 changed files with 884 additions and 921 deletions
|
@ -3,6 +3,7 @@ import SmallLicense from "../src/Models/smallLicense"
|
|||
import ScriptUtils from "./ScriptUtils"
|
||||
import Script from "./Script"
|
||||
import { Utils } from "../src/Utils"
|
||||
import { Lists } from "../src/Utils/Lists"
|
||||
|
||||
const prompt = require("prompt-sync")()
|
||||
|
||||
|
@ -297,9 +298,7 @@ export class GenerateLicenseInfo extends Script {
|
|||
sources: license.sources,
|
||||
}
|
||||
|
||||
cloned.license = Utils.Dedup(
|
||||
cloned.license.split(";").map((l) => this.toSPDXCompliantLicense(l))
|
||||
).join("; ")
|
||||
cloned.license = Lists.dedup(cloned.license.split(";").map((l) => this.toSPDXCompliantLicense(l))).join("; ")
|
||||
if (cloned.license === "CC0-1.0; TRIVIAL") {
|
||||
cloned.license = "TRIVIAL"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue