Skip to content

feat: remove extra spaces in attribute selector - #3794

Merged
j-f1 merged 1 commit into
masterfrom
feat-remove-extra-spaces-in-attribute-selector
Jan 23, 2018
Merged

j-f1 merged 1 commit into
masterfrom
feat-remove-extra-spaces-in-attribute-selector

Conversation

@alexander-akait

Copy link
Copy Markdown
Member

⭐

@lipis

lipis commented Jan 23, 2018

Copy link
Copy Markdown
Member

Good stuff :)

@j-f1
j-f1 merged commit b2e8c6d into master Jan 23, 2018
@j-f1
j-f1 deleted the feat-remove-extra-spaces-in-attribute-selector branch January 23, 2018 15:30
Comment thread src/language-css/clean.js
newObj.value = newObj.value.replace(/^['"]|['"]$/g, "");
delete newObj.quoted;
if (ast.type === "selector-attribute") {
newObj.attribute = newObj.attribute.replace(/ /g, "");

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.

Can't there be other types of whitespace we want to give the same treatment?

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 hm, maybe, let's test and fix this 👍

@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.

5 participants