We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e5c52 commit 8c498d5Copy full SHA for 8c498d5
project/Component/NefRender/Render.swift
@@ -55,7 +55,7 @@ public struct Render<A> {
55
func readPlatform(playground: RenderingURL) -> EnvIO<Environment, RenderError, Platform> {
56
let info = playground.url.appendingPathComponent("contents.xcplayground")
57
guard let xcplayground = try? String(contentsOf: info),
58
- let rawPlatform = xcplayground.matches(pattern: "(?<=target-platform=').*(?='*display-mode)").first,
+ let rawPlatform = xcplayground.matches(pattern: "(?<=target-platform=').*(?=>)").first,
59
let extractedPlatform = rawPlatform.components(separatedBy: "'").first?.lowercased(),
60
let platform = Platform(rawValue: extractedPlatform) else {
61
return EnvIO.raiseError(.extractPlatform(info))^
0 commit comments