Skip to content

Commit

Permalink
Replacing all - characters in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-g committed Jun 28, 2018
1 parent dc4dbb4 commit d92575e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var getDeclarationProperty = function getDeclarationProperty(property) {
propertyCharacters = propertyCharacters.map(function (char, index) {
return propertyCharacters[index - 1] === '-' ? char.toUpperCase() : char;
});
return propertyCharacters.join('').replace('-', '');
return propertyCharacters.join('').replace(/\-/g, '');
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getDeclarationProperty = function( property )
propertyCharacters = propertyCharacters.map( ( char, index ) => {
return propertyCharacters[ index - 1 ] === '-' ? char.toUpperCase() : char;
} );
return propertyCharacters.join( '' ).replace( '-', '' );
return propertyCharacters.join( '' ).replace(/\-/g, '' );
}

/**
Expand Down

0 comments on commit d92575e

Please sign in to comment.