forked from MapComplete/MapComplete
Allow to use emoji's as icons, fix #1997
This commit is contained in:
parent
1bab69c71f
commit
9deae9e659
5 changed files with 40 additions and 3 deletions
|
@ -16,6 +16,9 @@ export default class IconValidator extends Validator {
|
|||
}
|
||||
|
||||
getFeedback(s: string, getCountry, sloppy?: boolean): Translation | undefined {
|
||||
if(Utils.isEmoji(s)){
|
||||
return undefined
|
||||
}
|
||||
s = this.reformat(s)
|
||||
if (!s.startsWith("http")) {
|
||||
if (!IconValidator.allLicenses.has(s)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue