Skip to content
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

[Packager]bugfix: require in comment still effect sometimes on Windows. #2812

Closed
wants to merge 4 commits into from

Conversation

tdzl2003
Copy link
Contributor

blockCommentRe and lineCommentRe should support lines ending with '\r\n'.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Sep 17, 2015
const blockCommentRe = /\/\*(.|\n)*?\*\//g;
const lineCommentRe = /\/\/.+(\n|$)/g;
const blockCommentRe = /\/\*(.|\n|\r)*?\*\//g;
const lineCommentRe = /\/\/.*(\r|\n|$)/g;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit: Should this be \r\n (Windows line ending) instead of just \r?

Can you make this consistent with the change above? Above you used \n|\r and here?

@facebook-github-bot
Copy link
Contributor

@tdzl2003 updated the pull request.

@tdzl2003
Copy link
Contributor Author

tdzl2003 commented Jan 9, 2016

this pr is outdated

@tdzl2003 tdzl2003 closed this Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants