Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid sed due to portability issues between GNU and BSD versions #214

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

Closed
wants to merge 1 commit into from

Conversation

joshvarner
Copy link
Contributor

I noticed that the recent commit (ba43d37) to fix sed caused the semicolon to disappear from the end of the final jquery.min.js. Looking further into it, it appears that the Mac OS X (10.6.6) version of sed doesn't support the .\+ syntax. I tried replacing it with .\{1,\} only to discover that the BSD sed also doesn't support inserting newline characters in the replacement string. It simply adds an 'n'.

To avoid these issues, this pull request's commit replaces the sed call with a simple post-compile script that uses node.

@mathiasbynens
Copy link
Contributor

+1 No crazy Unicode hackery, no Uglify.js monkey-patching.

Tested on OS X 10.6.6 with Node.js 0.3.7; works flawlessly.

@jitter
Copy link
Contributor

jitter commented Feb 12, 2011

Landed 2862f58

Thanks. This is what I should have come up with in the first place

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants