Skip to content

Commit

Permalink
fix: issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
lukePeavey committed Nov 14, 2020
1 parent 6c8f0d5 commit 5f3299c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/split.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function splitSingleElement(element, settings) {
// append a `<br>` tag to splitText and continue to the next word
if (WORD === BR_SYMBOL) {
splitText.appendChild(createElement('br'))
return null
return result
}

// If splitting text into characters...
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "split-type",
"version": "0.2.1",
"version": "0.2.2",
"description": "A javascript library that splits plain text into individual lines, words, and characters.",
"main": "dist/index.js",
"unpkg": "umd/index.min.js",
Expand Down

0 comments on commit 5f3299c

Please sign in to comment.