-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes #2172: allow escape sequences in JS FFI exported using strings #2174
Conversation
Some of the Travis builds passed and some failed 😕. Not sure what to do. |
Is examples/passing/2172.js being included in the source distribution? If not, the purescript.cabal file may need amending. It looks like the OSX builds may be failing because of a corrupted cache or a bug in the build script anyway though, which I can investigate this weekend if nobody else gets there first. |
Thanks, @hdgarrood. I've amended the |
trimStringQuotes :: String -> String | ||
trimStringQuotes str = reverse $ drop 1 $ reverse $ drop 1 $ str | ||
strValue :: String -> String | ||
strValue str = go $ reverse $ drop 1 $ reverse $ drop 1 str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So language-javascript
gives the raw escaped string, straight out of the JS source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, unfortunately.
Thanks for this! I've cleared out the build cache in Travis, so we'll see what happens. |
CI passes with the cache cleared out. Is this ready to merge then? If so, I'll merge this and 0.9 into master, and then we can release 0.9.1 tomorrow. |
d1bcfd6
to
49694cd
Compare
@paf31 Should be good to go once CI finishes. |
Failing due to
|
@paf31 Fixed (even though it's unreachable 😓). |
Thanks! |
Fixes #2172.