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

Trailing semicolon #2962

Merged
merged 4 commits into from Feb 19, 2018
Merged

Conversation

marcel0ll
Copy link
Contributor

Related issue: #2961

By only adding a semicolon when merging two style attributes, single style strings do not receive anymore a semicolon.
I had to change the tests to reflect this new behavior

marcel0ll and others added 4 commits February 16, 2018 15:16
This is a first draft that tries to maintain the same code behavior
without worrying too much about the code quality
All style attributes that received a String won't generate
a trailing semicolon
Check if String is not empty by checking if it its true ('' is false)
Get last character of the string using slice(-1)
Add semicolon if the last string character is not a semicolon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants