Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from grimalschi/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rayd committed Jul 24, 2017
2 parents 7788cfd + c410577 commit 17687fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ function getClasses(element) {
const classes = {};
if (className !== null && className.length > 0) {
className.split(' ').forEach((className) => {
classes[className] = true;
if (className.trim().length) {
classes[className.trim()] = true;
}
});
}
return classes;
Expand Down

0 comments on commit 17687fc

Please sign in to comment.