forked from MapComplete/MapComplete
		
	Fix: remove trailing ';' for opening hours, as spotted by Midgard
This commit is contained in:
		
							parent
							
								
									4a9b7e0349
								
							
						
					
					
						commit
						36b086e414
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -15,7 +15,6 @@ import Translations from "../i18n/Translations" | ||||||
| import BaseUIElement from "../BaseUIElement" | import BaseUIElement from "../BaseUIElement" | ||||||
| 
 | 
 | ||||||
| export default class OpeningHoursInput extends InputElement<string> { | export default class OpeningHoursInput extends InputElement<string> { | ||||||
|     public readonly IsSelected: UIEventSource<boolean> = new UIEventSource<boolean>(false) |  | ||||||
|     private readonly _value: UIEventSource<string> |     private readonly _value: UIEventSource<string> | ||||||
|     private readonly _element: BaseUIElement |     private readonly _element: BaseUIElement | ||||||
| 
 | 
 | ||||||
|  | @ -104,7 +103,7 @@ export default class OpeningHoursInput extends InputElement<string> { | ||||||
|                 str += leftoverRules.data.join(";") + ";" |                 str += leftoverRules.data.join(";") + ";" | ||||||
| 
 | 
 | ||||||
|                 str = str.trim() |                 str = str.trim() | ||||||
|                 if (str.endsWith(";")) { |                 while (str.endsWith(";")) { | ||||||
|                     str = str.substring(0, str.length - 1) |                     str = str.substring(0, str.length - 1) | ||||||
|                 } |                 } | ||||||
|                 if (str.startsWith(";")) { |                 if (str.startsWith(";")) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue