Skip to content

Commit

Permalink
switched to \S for RegEx to include all non-whitespaces in word-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Tueti committed Nov 15, 2017
1 parent 04c6d35 commit f20ed1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-MovieListings.js
Expand Up @@ -153,7 +153,7 @@ Module.register('MMM-MovieListings', {
} else {
plotContent = movie.overviewShort;
}
plot.innerHTML = plotContent.split(/((?:\w+.?,?;?!?\?? ){10})/g).filter(Boolean).join("<br/>");;
plot.innerHTML = plotContent.split(/((?:\S+ ){10})/g).filter(Boolean).join("<br/>");;
}

// Set up details => image
Expand Down

0 comments on commit f20ed1c

Please sign in to comment.