forked from fediversity/fediversity
		
	Support empty strings in removeTrailingWhitespace
				
					
				
			This commit is contained in:
		
							parent
							
								
									722afdc5ea
								
							
						
					
					
						commit
						7c639fc131
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -18,7 +18,12 @@ let | |||
|       maybeMatch = match "(.*)\.pub" s; | ||||
|     in | ||||
|     if maybeMatch == null then s else elemAt maybeMatch 0; | ||||
|   removeTrailingWhitespace = s: elemAt (match "(.*[^[:space:]])[[:space:]]*" s) 0; | ||||
|   removeTrailingWhitespace = | ||||
|     s: | ||||
|     let | ||||
|       maybeMatch = match "(.*[^[:space:]])[[:space:]]*" s; | ||||
|     in | ||||
|     if maybeMatch == null then "" else elemAt maybeMatch 0; | ||||
| 
 | ||||
|   collectKeys = | ||||
|     dir: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue