Browse Source
filter empty strings, in case of `--custom-var`
pull/1625/head
Evgeniy Foucault
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/utils/mixins.js
|
|
|
@ -73,7 +73,7 @@ const getUnitFromValue = value => { |
|
|
|
const upFirst = value => value[0].toUpperCase() + value.toLowerCase().slice(1); |
|
|
|
|
|
|
|
const camelCase = value => { |
|
|
|
const values = value.split('-'); |
|
|
|
const values = value.split('-').filter(String); |
|
|
|
return values[0].toLowerCase() + values.slice(1).map(upFirst); |
|
|
|
}; |
|
|
|
|
|
|
|
|