Skip to content

fix: don't change case of function name - #3768

Merged
lydell merged 1 commit into
prettier:masterfrom
alexander-akait:issue-3748
Jan 19, 2018
Merged

lydell merged 1 commit into
prettier:masterfrom
alexander-akait:issue-3748

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Jan 19, 2018 •

Copy link
Copy Markdown
Member

Fixes #3748.

@ikatyang

Copy link
Copy Markdown
Member

Isn't it #3748?

@j-f1

j-f1 commented Jan 19, 2018

Copy link
Copy Markdown
Member

Looks like it is.

@alexander-akait

Copy link
Copy Markdown
Member Author

@j-f1 @ikatyang yes, sorry

@lydell lydell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Possibly one comment. Otherwise merge away!

value.startsWith("%") ||
value.startsWith("--")
value.startsWith("--") ||
(value.includes("(") && value.includes(")"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This can match ( and ) out of order () foo () so perhaps only check value.includes("(")? Or perhaps it doesn’t matter. Or it can’t happen due to how the parsing works.

@alexander-akait alexander-akait Jan 19, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lydell we have maybeToLowerCase(n.prop), value.includes("(") not enough, it can break css hacks see http://browserhacks.com/. I don't known should be handle css hacks, but i think we don't break code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good, then we’re good to go. 👍

@lydell
lydell merged commit 74d25c3 into prettier:master Jan 19, 2018
@alexander-akait
alexander-akait deleted the issue-3748 branch January 19, 2018 14:45
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants