We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 134867a commit f7fa6a5Copy full SHA for f7fa6a5
Sources/StencilSwiftKit/Filters+Strings.swift
@@ -305,7 +305,10 @@ extension Filters.Strings {
305
/// - Throws: FilterError.invalidInputType if the value parameter isn't a string
306
static func dirname(_ value: Any?) throws -> Any? {
307
let string = try Filters.parseString(from: value)
308
+
309
#if os(Linux)
310
+ // `NSString.standardizingPath` crashes on Linux. Bug reference:
311
+ // https://github.com/apple/swift-corelibs-foundation/pull/1536
312
var result = NSString(string: string).deletingLastPathComponent
313
if result.isEmpty {
314
result = "."
0 commit comments