Closed observableobject closed 2 years ago
@vfrascello sorry for the delayed response. This is a bug in SwiftFormat's parser, triggered by the #"""#
token. I'll get this fixed asap, but in the meantime I think you can just rewrite it as:
private lazy var inject = #"let url = document.getElementById("privacyPolicy"); url.setAttribute("href", ""# + privacyPolicyURL + #"");"#
@vfrascello fixed in 0.49.4
Hello,
I'm concatenating some string literals that contain javascript for an injection and SwiftFormat is failing on the definitions:
I don't normally use String literals so it's possible I'm doing something incorrectly (although it builds and works fine), so I figured to submit an issue here to let you know.