Skip to content

Commit

Permalink
Fix issue with string coercion on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Aug 28, 2018
1 parent addaca0 commit 3f298ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/StencilSwiftKit/Filters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ enum Filters {
if let string = value as? String {
return string
}
#if os(Linux)
if let string = value as? NSString {
return String(describing: string)
}
#endif

throw Error.invalidInputType
}

Expand Down

0 comments on commit 3f298ae

Please sign in to comment.