forked from MapComplete/MapComplete
		
	chore: automated housekeeping...
This commit is contained in:
		
							parent
							
								
									a2dd79c4ec
								
							
						
					
					
						commit
						7b792af261
					
				
					 101 changed files with 2196 additions and 22043 deletions
				
			
		| 
						 | 
				
			
			@ -141,7 +141,7 @@ class ExpandFilter extends DesugaringStep<LayerConfigJson> {
 | 
			
		|||
                "Found a matching tagRendering to base a filter on, but this tagRendering does not contain any mappings"
 | 
			
		||||
            )
 | 
			
		||||
        }
 | 
			
		||||
        const qtr = (<QuestionableTagRenderingConfigJson>tr)
 | 
			
		||||
        const qtr = <QuestionableTagRenderingConfigJson>tr
 | 
			
		||||
        const options = qtr.mappings.map((mapping) => {
 | 
			
		||||
            let icon: string = mapping.icon?.["path"] ?? mapping.icon
 | 
			
		||||
            let emoji: string = undefined
 | 
			
		||||
| 
						 | 
				
			
			@ -149,12 +149,15 @@ class ExpandFilter extends DesugaringStep<LayerConfigJson> {
 | 
			
		|||
                emoji = icon
 | 
			
		||||
                icon = undefined
 | 
			
		||||
            }
 | 
			
		||||
            let osmTags = TagUtils.Tag( mapping.if)
 | 
			
		||||
            if(qtr.multiAnswer && osmTags instanceof Tag){
 | 
			
		||||
                osmTags = new RegexTag(osmTags.key, new RegExp("^(.+;)?"+osmTags.value+"(;.+)$","is"))
 | 
			
		||||
            let osmTags = TagUtils.Tag(mapping.if)
 | 
			
		||||
            if (qtr.multiAnswer && osmTags instanceof Tag) {
 | 
			
		||||
                osmTags = new RegexTag(
 | 
			
		||||
                    osmTags.key,
 | 
			
		||||
                    new RegExp("^(.+;)?" + osmTags.value + "(;.+)$", "is")
 | 
			
		||||
                )
 | 
			
		||||
            }
 | 
			
		||||
            if(mapping.alsoShowIf){
 | 
			
		||||
                osmTags= new Or([osmTags, TagUtils.Tag(mapping.alsoShowIf)])
 | 
			
		||||
            if (mapping.alsoShowIf) {
 | 
			
		||||
                osmTags = new Or([osmTags, TagUtils.Tag(mapping.alsoShowIf)])
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return <FilterConfigOptionJson>{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ export default class DeleteConfig {
 | 
			
		|||
            } else if (json.omitDefaultDeleteReasons) {
 | 
			
		||||
                const forbidden = <string[]>json.omitDefaultDeleteReasons
 | 
			
		||||
                deleteReasons = deleteReasons.filter(
 | 
			
		||||
                    (dl) => forbidden.indexOf(dl.changesetMessage) < 0,
 | 
			
		||||
                    (dl) => forbidden.indexOf(dl.changesetMessage) < 0
 | 
			
		||||
                )
 | 
			
		||||
            }
 | 
			
		||||
            for (const defaultDeleteReason of deleteReasons) {
 | 
			
		||||
| 
						 | 
				
			
			@ -90,7 +90,7 @@ export default class DeleteConfig {
 | 
			
		|||
        if (json.softDeletionTags !== undefined) {
 | 
			
		||||
            this.softDeletionTags = TagUtils.Tag(
 | 
			
		||||
                json.softDeletionTags,
 | 
			
		||||
                `${context}.softDeletionTags`,
 | 
			
		||||
                `${context}.softDeletionTags`
 | 
			
		||||
            )
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue