forked from MapComplete/MapComplete
Studio: more work on studio
This commit is contained in:
parent
81876fc5ed
commit
4e8dfc0026
20 changed files with 1842 additions and 94 deletions
|
@ -11,7 +11,12 @@ export default class IconValidator extends Validator {
|
|||
super("icon", "Makes sure that a valid .svg-path is added")
|
||||
}
|
||||
|
||||
reformat(s: string, _?: () => string): string {
|
||||
return s.trim()
|
||||
}
|
||||
|
||||
getFeedback(s: string, getCountry, sloppy?: boolean): Translation | undefined {
|
||||
s = this.reformat(s)
|
||||
if (!s.startsWith("http")) {
|
||||
if (!IconValidator.allLicenses.has(s)) {
|
||||
const close = sloppy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue