Browse Source

filter empty strings, in case of `--custom-var`

pull/1625/head
Evgeniy Foucault 8 years ago
committed by GitHub
parent
commit
9e5b2d7efa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/utils/mixins.js

2
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);
};

Loading…
Cancel
Save