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

Adds support for string-quotes. #164

Merged
merged 2 commits into from
Jul 10, 2016
Merged

Adds support for string-quotes. #164

merged 2 commits into from
Jul 10, 2016

Conversation

ChaosExAnima
Copy link
Contributor

Resolves #101. Also changes isString test to work correctly for empty strings.

@@ -4,7 +4,7 @@ var formatColors = require('./formatColors')
function formatvalues (decl, stylelint) {
var isDataUrl = /data:.+\/(.+);base64,(.*)/.test(decl.value)
var isVarNotation = /var\s*\(.*\)/.test(decl.value)
var isString = /^("|').+("|')$/.test(decl.value)
var isString = /^("|').*("|')$/.test(decl.value)
Copy link
Owner

Choose a reason for hiding this comment

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

👍

@matype
Copy link
Owner

matype commented Jul 10, 2016

@ChaosExAnima Good stuff! Thanks :)

@matype matype merged commit 43e37ff into matype:master Jul 10, 2016
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.

2 participants