forked from MapComplete/MapComplete
		
	Small fixes to fixImage script
This commit is contained in:
		
							parent
							
								
									32c9f53ff1
								
							
						
					
					
						commit
						f4a47732f8
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -3,7 +3,6 @@ import {DesugaringStep} from "../Models/ThemeConfig/Conversion/Conversion"; | |||
| import {LayerConfigJson} from "../Models/ThemeConfig/Json/LayerConfigJson"; | ||||
| import {Utils} from "../Utils"; | ||||
| import Translations from "../UI/i18n/Translations"; | ||||
| import TagRenderingConfig from "../Models/ThemeConfig/TagRenderingConfig"; | ||||
| 
 | ||||
| class ConvertImagesToIcon extends DesugaringStep<LayerConfigJson> { | ||||
|     private _iconClass: string; | ||||
|  | @ -32,7 +31,7 @@ class ConvertImagesToIcon extends DesugaringStep<LayerConfigJson> { | |||
|                 } | ||||
|                 information.push("Replaced image " + images[0]) | ||||
|                 const replaced = then.OnEveryLanguage((s) => { | ||||
|                     return s.replace(/(<div [^>]*>)?<img [^>]*> ?/, "").replace(/<\/div>$/, "") | ||||
|                     return s.replace(/(<div [^>]*>)?<img [^>]*> ?/, "").replace(/<\/div>$/, "").trim() | ||||
|                 }) | ||||
| 
 | ||||
|                 mapping.then = replaced.translations | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue