Thibaut Schmitt 756de4f1de
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
feat(RES-34): Fix plist font filename (#14)
Reviewed-on: #14
2025-05-05 09:53:05 +02:00

20 lines
360 B
Swift

//
// StringExtensions.swift
//
//
// Created by Thibaut Schmitt on 31/08/2022.
//
import Foundation
extension String {
func prependIfRelativePath(_ prependPath: String) -> String {
// If path starts with "/", it's an absolute path
if self.hasPrefix("/") {
return self
}
return prependPath + self
}
}